summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/default-arg-special-member.cpp
Commit message (Collapse)AuthorAgeFilesLines
* C++ core issue 1344, PR10618: promote "addition of default argument makes thisRichard Smith2012-11-281-12/+0
| | | | | | | | | | | | a special member" diagnostic from warning to error, and fix the cases where it produced diagnostics with incorrect wording. We don't support this as an extension, and we ban it even in C++98 mode. This breaks too much (for instance, the ABI-specified calling convention for a type can change if it acquires a copy constructor through the addition of a default argument). llvm-svn: 168769
* I've had too much to drink, apparently.Alexis Hunt2011-06-031-1/+1
| | | | llvm-svn: 132566
* Implement a warning flag for the warning about default arguments makingAlexis Hunt2011-06-031-0/+1
| | | | | | special member functions. llvm-svn: 132564
* Implement a new warning for when adding a default argument to a methodAlexis Hunt2011-05-261-0/+11
makes it into a special member function. This is very bad and can lead to all sorts of nastiness including implicit member functions violating the One Definition Rule. This should probably be made ill-formed in a later version of the standard, but for now we'll just warn. llvm-svn: 132104
OpenPOWER on IntegriCloud