Issue 237578
Summary Enumerated type redefinitions containing enumerators that refer to other enumerators causes ambiguous references
Labels new issue
Assignees
Reporter Halalaluyafail3
    The following program demonstrates the issue:
```c
enum E{A=1,B=A};
enum E{A=1,B=A};
int main(){}
```
This should be valid, but Clang rejects it saying "reference to 'A' is ambiguous".
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to