summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/copy-constructor-error.cpp
Commit message (Collapse)AuthorAgeFilesLines
* C++ core issue 1344, PR10618: promote "addition of default argument makes thisRichard Smith2012-11-281-3/+37
| | | | | | | | | | | | 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
* Implement a new warning for when adding a default argument to a methodAlexis Hunt2011-05-261-2/+2
| | | | | | | | | 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
* Add test case from PR6064, which now worksDouglas Gregor2010-03-021-0/+13
| | | | llvm-svn: 97575
* Switch Sema::AddCXXDirectInitializerToDecl over to InitializationSequenceDouglas Gregor2009-12-221-4/+3
| | | | llvm-svn: 91927
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Revert r88718, which does NOT solve the ↵Douglas Gregor2009-11-131-3/+5
| | | | | | constructor-template-as-copy-constructor issue. Big thanks to John for finding this llvm-svn: 88724
* A constructor template cannot be instantiated to a copyDouglas Gregor2009-11-131-5/+3
| | | | | | constructor. Make sure that such declarations can never be formed. llvm-svn: 88718
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-3/+3
| | | | llvm-svn: 81346
* After reporting ill-formed copy constructor(12.8.p3)Fariborz Jahanian2009-08-061-0/+13
don't recurs and crash. llvm-svn: 78323
OpenPOWER on IntegriCloud