Having multiple unnamed enumeration definitions
in the same scope
that have the same first enumerator name
and do not have typedef names for linkage purposes ([dcl.enum])
that are not the same enumeration
is ill-formed, no diagnostic required.
Source file "main.cpp":import"a.h";
import"b.h";
auto n =decltype(a)::b; // IFNDR, more than one unnamed enum definition reachable at// this point but their types are not the same — end example]