Fix a crash with constructs like x<false>() in C++. No testcase because

it doesn't actually work yet; we just error out a bit more gracefully.

llvm-svn: 74381
This commit is contained in:
Eli Friedman 2009-06-27 06:24:06 +00:00
parent 173e0b7a96
commit 9fe1bb40ae
1 changed files with 1 additions and 1 deletions

View File

@ -963,7 +963,7 @@ bool Parser::TryAnnotateTypeOrScopeToken() {
}
if (SS.isEmpty())
return false;
return Tok.isNot(tok::identifier);
// A C++ scope specifier that isn't followed by a typename.
// Push the current token back into the token stream (or revert it if it is