summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/class/class.mem/p14.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Related to PR37768: improve diagnostics for class name shadowing.Richard Smith2018-06-201-3/+2
| | | | | | | | | | | | Diagnose the name of the class being shadowed by using declarations, and improve the diagnostics for the case where the name of the class is shadowed by a non-static data member in a class with constructors. In the latter case, we now always give the "member with the same name as its class" diagnostic regardless of the relative order of the member and the constructor, rather than giving an inscrutible diagnostic if the constructor appears second. llvm-svn: 335182
* Don't use the implicit int rule for error recovery in C++. Instead, try toRichard Smith2012-05-151-2/+3
| | | | | | disambiguate whether the type name was forgotten or mistyped. llvm-svn: 156854
* Diagnose C++ [class.mem]p13-14, where a class member has the same nameDouglas Gregor2010-10-151-0/+19
as the class itself. Fixes PR7082. llvm-svn: 116573
OpenPOWER on IntegriCloud