]> granicus.if.org Git - clang/commitdiff
Add a completely unnecessary "template" keyword to appease GCC
authorDouglas Gregor <dgregor@apple.com>
Sat, 11 Sep 2010 20:47:38 +0000 (20:47 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 11 Sep 2010 20:47:38 +0000 (20:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113703 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/EvaluatedExprVisitor.h

index dcb125497bcacfefdb9237cd2c08c5a65710dcce..6835a76699a0961c0c37931e4e45b2a1eb07a83f 100644 (file)
@@ -63,7 +63,7 @@ public:
     // a glvalue of polymorphic type. (C++ 5.2.8p2-3)
     if (!E->isTypeOperand() && E->Classify(Context).isGLValue())
       if (const RecordType *Record 
-                        = E->getExprOperand()->getType()->getAs<RecordType>())
+                 = E->getExprOperand()->getType()->template getAs<RecordType>())
         if (cast<CXXRecordDecl>(Record->getDecl())->isPolymorphic())
           return this->Visit(E->getExprOperand());
   }