Update a comment to match current core issues list.

llvm-svn: 193970
This commit is contained in:
Richard Smith 2013-11-04 02:02:27 +00:00
parent 8b86f2d401
commit 2002bfec3b
1 changed files with 3 additions and 8 deletions

View File

@ -5576,9 +5576,9 @@ bool Sema::SpecialMemberIsTrivial(CXXMethodDecl *MD, CXXSpecialMember CSM,
bool ConstArg = false;
// C++11 [class.copy]p12, p25:
// A [special member] is trivial if its declared parameter type is the same
// as if it had been implicitly declared [...]
// C++11 [class.copy]p12, p25: [DR1593]
// A [special member] is trivial if [...] its parameter-type-list is
// equivalent to the parameter-type-list of an implicit declaration [...]
switch (CSM) {
case CXXDefaultConstructor:
case CXXDestructor:
@ -5622,11 +5622,6 @@ bool Sema::SpecialMemberIsTrivial(CXXMethodDecl *MD, CXXSpecialMember CSM,
llvm_unreachable("not a special member");
}
// FIXME: We require that the parameter-declaration-clause is equivalent to
// that of an implicit declaration, not just that the declared parameter type
// matches, in order to prevent absuridities like a function simultaneously
// being a trivial copy constructor and a non-trivial default constructor.
// This issue has not yet been assigned a core issue number.
if (MD->getMinRequiredArguments() < MD->getNumParams()) {
if (Diagnose)
Diag(MD->getParamDecl(MD->getMinRequiredArguments())->getLocation(),