Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

enum redeclared in this block bug #156

Open
visualfc opened this issue Nov 2, 2022 · 0 comments · May be fixed by #157
Open

enum redeclared in this block bug #156

visualfc opened this issue Nov 2, 2022 · 0 comments · May be fixed by #157
Labels
bug Something isn't working

Comments

@visualfc
Copy link
Member

visualfc commented Nov 2, 2022

test demo
a.c

#include <stdio.h>

enum {
    ONE,TWO
};

void test1() {
    printf("test1 %d\n",ONE);
}

b.c

#include <stdio.h>

enum {
   ONE,TWO
};

void test2()
{
    printf("test2 %d\n",TWO);
}

main.c

extern void test1();
extern void test2();

int main() {
    test1();
    test2();
}

c2go .

b.c.i:541:4: ONE redeclared in this block
@visualfc visualfc linked a pull request Nov 2, 2022 that will close this issue
@xushiwei xushiwei added the bug Something isn't working label Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants