Skip to content

Commit 82f37b1

Browse files
committed
--- Merging r127543 into '.':
U lib/Sema/SemaDeclCXX.cpp llvm-svn: 127615
1 parent d86b9d6 commit 82f37b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,10 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo,
14841484
if (!LangOpts.CPlusPlus0x)
14851485
return Diag(Loc, diag::err_delegation_0x_only)
14861486
<< TInfo->getTypeLoc().getLocalSourceRange();
1487-
1487+
// Disable for 2.9.
1488+
return Diag(Loc, diag::err_delegation_unimplemented)
1489+
<< TInfo->getTypeLoc().getLocalSourceRange();
1490+
#if 0
14881491
// Initialize the object.
14891492
InitializedEntity DelegationEntity = InitializedEntity::InitializeDelegation(
14901493
QualType(ClassDecl->getTypeForDecl(), 0));
@@ -1531,6 +1534,7 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo,
15311534
return new (Context) CXXCtorInitializer(Context, Loc, LParenLoc, Constructor,
15321535
DelegationInit.takeAs<Expr>(),
15331536
RParenLoc);
1537+
#endif
15341538
}
15351539

15361540
MemInitResult

0 commit comments

Comments
 (0)