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:
parent
173e0b7a96
commit
9fe1bb40ae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue