[cfe-commits] r74381 - /cfe/trunk/lib/Parse/Parser.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Jun 26 23:24:11 PDT 2009
Author: efriedma
Date: Sat Jun 27 01:24:06 2009
New Revision: 74381
URL: http://llvm.org/viewvc/llvm-project?rev=74381&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Parse/Parser.cpp
Modified: cfe/trunk/lib/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Parser.cpp?rev=74381&r1=74380&r2=74381&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/Parser.cpp (original)
+++ cfe/trunk/lib/Parse/Parser.cpp Sat Jun 27 01:24:06 2009
@@ -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
More information about the cfe-commits
mailing list