diff options
author | John McCall <rjmccall@apple.com> | 2010-02-26 08:45:28 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-26 08:45:28 +0000 |
commit | 9ba6166f4a78722e7df8ffbd64eb788bfdf2764a (patch) | |
tree | 9190313545ecd2cecefbc77fb7fe5d7d27ad8721 /test/Parser/cxx-template-argument.cpp | |
parent | dc0a11cf52cf34ffae941255df60a086e44d1a71 (diff) |
Fix an assertion-on-error during tentative constructor parsing by
propagating error conditions out of the various annotate-me-a-snowflake
routines. Generally (but not universally) removes redundant diagnostics
as well as, you know, not crashing on bad code. On the other hand,
I have just signed myself up to fix fiddly parser errors for the next
week. Again.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-template-argument.cpp')
-rw-r--r-- | test/Parser/cxx-template-argument.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Parser/cxx-template-argument.cpp b/test/Parser/cxx-template-argument.cpp index 80389a07b0..532b4c9894 100644 --- a/test/Parser/cxx-template-argument.cpp +++ b/test/Parser/cxx-template-argument.cpp @@ -5,5 +5,5 @@ template<typename T> struct A {}; // Check for template argument lists followed by junk // FIXME: The diagnostics here aren't great... A<int+> int x; // expected-error {{expected '>'}} expected-error {{expected unqualified-id}} -A<int x; // expected-error {{expected '>'}} expected-error {{C++ requires a type specifier for all declarations}} +A<int x; // expected-error {{expected '>'}} |