]> granicus.if.org Git - clang/commitdiff
Disable delegating constructors for 2.9
authorSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 12 Mar 2011 13:53:47 +0000 (13:53 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 12 Mar 2011 13:53:47 +0000 (13:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127543 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index f6551054c183901f90b0a9aeb68fb2de795fe228..b6f71d003510292966c738979cc81f36eff42bc8 100644 (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