Skip to content

Commit

Permalink
Initialize the BaseLoc for decltype base type specifications.
Browse files Browse the repository at this point in the history
llvm-svn: 142929
  • Loading branch information
dwblaikie committed Oct 25, 2011
1 parent 1cd5002 commit b75951f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/lib/Parse/ParseDeclCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit b75951f

Please sign in to comment.