summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/enum-unscoped-nonexistent.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Suppress bogus "use of undefined constexpr function" error if the function bodyRichard Smith2013-05-141-2/+2
| | | | | | was erroneous and got discarded. llvm-svn: 181758
* The 'constexpr implies const' rule for non-static member functions is gone inRichard Smith2013-04-211-4/+4
| | | | | | | | | C++1y, so stop adding the 'const' there. Provide a compatibility warning for code relying on this in C++11, with a fix-it hint. Update our lazily-written tests to add the const, except for those ones which were testing our implementation of this rule. llvm-svn: 179969
* Add a special-case diagnostic for one of the more obnoxious special cases ofRichard Smith2012-03-261-0/+39
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. llvm-svn: 153461
OpenPOWER on IntegriCloud