C++ core issue 1344, PR10618: promote "addition of default argument makes this
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 28 Nov 2012 03:45:24 +0000 (03:45 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 28 Nov 2012 03:45:24 +0000 (03:45 +0000)
commit58c3cc12dacc5eb803972736d29569e16b38d299
treecdafb8864e8589e2c43c1c6c39434d8e5cdaca69
parent0be19363d1389680b570949cadbfcd6d220e3d87
C++ core issue 1344, PR10618: promote "addition of default argument makes this
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
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p4.cpp
clang/test/SemaCXX/copy-constructor-error.cpp
clang/test/SemaCXX/default-arg-special-member.cpp [deleted file]