Disable delegating constructors for 2.9

llvm-svn: 127543
This commit is contained in:
Sebastian Redl 2011-03-12 13:53:47 +00:00
parent c1f8e493da
commit a2cb77f54e
1 changed files with 5 additions and 1 deletions

View File

@ -1532,7 +1532,10 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo,
if (!LangOpts.CPlusPlus0x)
return Diag(Loc, diag::err_delegation_0x_only)
<< TInfo->getTypeLoc().getLocalSourceRange();
// Disable for 2.9.
return Diag(Loc, diag::err_delegation_unimplemented)
<< TInfo->getTypeLoc().getLocalSourceRange();
#if 0
// Initialize the object.
InitializedEntity DelegationEntity = InitializedEntity::InitializeDelegation(
QualType(ClassDecl->getTypeForDecl(), 0));
@ -1579,6 +1582,7 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo,
return new (Context) CXXCtorInitializer(Context, Loc, LParenLoc, Constructor,
DelegationInit.takeAs<Expr>(),
RParenLoc);
#endif
}
MemInitResult