diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-19 22:47:36 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-19 22:47:36 +0000 |
commit | 404dfb46a9dde63548d59db3295681a1c3a684fc (patch) | |
tree | a25b849dd6e65cd375970c1a38b83f9db019ed04 /clang/test/Parser/cxx-decl.cpp | |
parent | 8bc4a0ba147f2bc0508313b6c41bb03fd564cd4e (diff) | |
download | bcm5719-llvm-404dfb46a9dde63548d59db3295681a1c3a684fc.tar.gz bcm5719-llvm-404dfb46a9dde63548d59db3295681a1c3a684fc.zip |
PR9547: If we're parsing a simple-declaration that contains a tag definition,
and we see an ill-formed declarator that would probably be well-formed if the
tag definition were just missing a semicolon, use that as the diagnostic
instead of producing some other mysterious error.
llvm-svn: 195163
Diffstat (limited to 'clang/test/Parser/cxx-decl.cpp')
-rw-r--r-- | clang/test/Parser/cxx-decl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Parser/cxx-decl.cpp b/clang/test/Parser/cxx-decl.cpp index 06272504bc5..8c4c6175f5c 100644 --- a/clang/test/Parser/cxx-decl.cpp +++ b/clang/test/Parser/cxx-decl.cpp @@ -108,9 +108,9 @@ template<class T> class Class1; class Class2 { -} // no ; +} // expected-error {{expected ';' after class}} -typedef Class1<Class2> Type1; // expected-error {{cannot combine with previous 'class' declaration specifier}} +typedef Class1<Class2> Type1; // rdar : // 8307865 struct CodeCompleteConsumer { |