Skip to content

Commit b75951f

Browse files
committed
Initialize the BaseLoc for decltype base type specifications.
llvm-svn: 142929
1 parent 1cd5002 commit b75951f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Parse/ParseDeclCXX.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ Parser::TypeResult Parser::ParseBaseTypeSpecifier(SourceLocation &BaseLoc,
718718
// Fake up a Declarator to use with ActOnTypeName.
719719
DeclSpec DS(AttrFactory);
720720

721+
BaseLoc = Tok.getLocation();
722+
721723
ParseDecltypeSpecifier(DS);
722724
EndLocation = DS.getSourceRange().getEnd();
723725

0 commit comments

Comments
 (0)