diff options
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r-- | clang/lib/Parse/ParseTentative.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp index b58100c..2a731a1 100644 --- a/clang/lib/Parse/ParseTentative.cpp +++ b/clang/lib/Parse/ParseTentative.cpp @@ -1376,7 +1376,7 @@ Parser::isCXXDeclarationSpecifier(ImplicitTypenameContext AllowImplicitTypename, // If we annotated then the current token should not still be :: // FIXME we may want to also check for tok::annot_typename but // currently don't have a test case. - if (Tok.isNot(tok::annot_cxxscope)) + if (Tok.isNot(tok::annot_cxxscope) && Tok.isNot(tok::identifier)) break; } |