clang allows for multiple declarations introduced by using enum
#121334
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
diverges-from:gcc
Does the clang frontend diverge from gcc on this issue
diverges-from:msvc
Does the clang frontend diverge from msvc on this issue
The following code is accepted by clang under
-std=c++20
:MSVC and GCC choose to reject it as there would be a name conflict:
While the
using enum B
statement here actually seems to be meaningless, I'm not quite sure whether this should be rejected or not.https://godbolt.org/z/3e3aGxnWW
The text was updated successfully, but these errors were encountered: