diff options
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 7a597be871..f6551054c1 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -2898,8 +2898,7 @@ void Sema::CheckCompletedCXXClass(CXXRecordDecl *Record) { // waste space and performance on classes that are not meant to be // instantiated (e.g. meta-functions). This doesn't apply to classes that // have inherited constructors. - // Disabled for 2.9 - //DeclareInheritedConstructors(Record); + DeclareInheritedConstructors(Record); } /// \brief Data used with FindHiddenVirtualMethod @@ -4325,11 +4324,8 @@ NamedDecl *Sema::BuildUsingDeclaration(Scope *S, AccessSpecifier AS, // Constructor inheriting using decls get special treatment. if (NameInfo.getName().getNameKind() == DeclarationName::CXXConstructorName) { - // Disabled for 2.9 - Diag(UD->getLocation(), - diag::err_using_decl_inherited_constructor_unsupported); - //if (CheckInheritedConstructorUsingDecl(UD)) - UD->setInvalidDecl(); + if (CheckInheritedConstructorUsingDecl(UD)) + UD->setInvalidDecl(); return UD; } |