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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74381 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp
index f582448..6cb07ef 100644
--- a/lib/Parse/Parser.cpp
+++ b/lib/Parse/Parser.cpp
@@ -963,7 +963,7 @@
}
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