diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-06-27 06:24:06 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-06-27 06:24:06 +0000 |
commit | 8060ed55d6ec003af072d10d92df772c7b9b8475 (patch) | |
tree | 728057b81aaf9ecf6bfdadb82567ba3617d38996 /lib/Parse/Parser.cpp | |
parent | 5d39dee0cca8d675120791234cd39a622b986f1b (diff) |
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
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index f582448ee9..6cb07ef919 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -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 |