diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-03-12 13:53:47 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-03-12 13:53:47 +0000 |
commit | 9d0af360ec510c06967afd7a23b202ce5bad7301 (patch) | |
tree | b4e20fc8d70c86daec9a8403e4f25e42af839f64 /lib/Sema/SemaDeclCXX.cpp | |
parent | caa35e4bbfccaaa6c4d69f29b3f1a8b544b3645e (diff) |
Disable delegating constructors for 2.9
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index f6551054c1..b6f71d0035 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -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 |