forked from OSchip/llvm-project
Add "template" keyword at strategic position to fix
compilation using g++ v3.4. I'll watch the buildbots and back out if necessary. Feel free to do the same if something breaks. Without this patch I get (on g++ 3.4.6) following error: In file included from clang/lib/Sema/SemaTemplate.cpp:14: clang/lib/Sema/TreeTransform.h: In member function `clang::ASTOwningResult<&clang::ActionBase::DeleteExpr> clang::TreeTransform<Derived>::RebuildCXXPseudoDestructorExpr(clang::ASTOwningResult<&clang::ActionBase::DeleteExpr>, clang::SourceLocation, bool, clang::NestedNameSpecifier*, clang::SourceRange, clang::TypeSourceInfo*, clang::SourceLocation, clang::SourceLocation, clang::PseudoDestructorTypeStorage)': clang/lib/Sema/TreeTransform.h:5784: error: expected primary-expression before '>' token clang/lib/Sema/TreeTransform.h:5784: error: expected primary-expression before ')' token make[4]: *** [clang/lib/Sema/Release/SemaTemplate.o] Error 1 llvm-svn: 97136
This commit is contained in:
parent
21b57fa4e5
commit
5c07926d44
|
@ -5781,7 +5781,8 @@ TreeTransform<Derived>::RebuildCXXPseudoDestructorExpr(ExprArg Base,
|
|||
if (BaseE->isTypeDependent() || Destroyed.getIdentifier() ||
|
||||
(!isArrow && !BaseType->getAs<RecordType>()) ||
|
||||
(isArrow && BaseType->getAs<PointerType>() &&
|
||||
!BaseType->getAs<PointerType>()->getPointeeType()->getAs<RecordType>())){
|
||||
!BaseType->getAs<PointerType>()->getPointeeType()
|
||||
->template getAs<RecordType>())){
|
||||
// This pseudo-destructor expression is still a pseudo-destructor.
|
||||
return SemaRef.BuildPseudoDestructorExpr(move(Base), OperatorLoc,
|
||||
isArrow? tok::arrow : tok::period,
|
||||
|
|
Loading…
Reference in New Issue