History log of /external/clang/test/SemaCXX/enum-unscoped-nonexistent.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0724b7c43007d978c46f890dcd2ab3c8d3c22920 26-Mar-2012 Richard Smith <richard-llvm@metafoo.co.uk> Add a special-case diagnostic for one of the more obnoxious special cases of
unscoped enumeration members: an enumerator name which is visible in the
out-of-class definition of a member of a templated class might not actually
exist in the instantiation of that class, if the enumeration is also lexically
defined outside the class definition and is explicitly specialized.

Depending on the result of a CWG discussion, we may have a different resolution
for a class of problems in this area, but this fixes the immediate issue of a
crash-on-invalid / accepts-invalid (depending on +Asserts). Thanks to Johannes
Schaub for digging into the standard wording to find how this case is currently
specified to behave.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153461 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/enum-unscoped-nonexistent.cpp