]> granicus.if.org Git - clang/commitdiff
Initialize the BaseLoc for decltype base type specifications.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 25 Oct 2011 17:14:10 +0000 (17:14 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 25 Oct 2011 17:14:10 +0000 (17:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142929 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDeclCXX.cpp

index 10234ab89214cebdfcff211222d632486ea43b8d..bdd41a27dfef9e2b76d9aedfd9c6d046a42443ae 100644 (file)
@@ -718,6 +718,8 @@ Parser::TypeResult Parser::ParseBaseTypeSpecifier(SourceLocation &BaseLoc,
     // Fake up a Declarator to use with ActOnTypeName.
     DeclSpec DS(AttrFactory);
 
+    BaseLoc = Tok.getLocation();
+
     ParseDecltypeSpecifier(DS);    
     EndLocation = DS.getSourceRange().getEnd();