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

enum redeclared in this block bug #156

@visualfc

Description

@visualfc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions