Issue |
134955
|
Summary |
Incorrect diagnostic wording for out-of-line enum declarations
|
Labels |
c++,
clang:diagnostics,
confirmed
|
Assignees |
|
Reporter |
Endilll
|
Consider the following (https://godbolt.org/z/cj1hMqbof):
```cpp
struct A {
enum E : int;
};
namespace N {
enum A::E : int { e1 };
}
```
Clang rejects this with `error: cannot define or redeclare 'E' here because namespace 'N' does not enclose namespace 'A'`, but `A` is a struct and not a namespace.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs