From fc764b6d50aba62a6dbf736a763197e0805d83ed Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 19 Nov 2013 22:47:36 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195163 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Parser/cxx-decl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Parser/cxx-decl.cpp') diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp index 06272504bc..8c4c6175f5 100644 --- a/test/Parser/cxx-decl.cpp +++ b/test/Parser/cxx-decl.cpp @@ -108,9 +108,9 @@ template class Class1; class Class2 { -} // no ; +} // expected-error {{expected ';' after class}} -typedef Class1 Type1; // expected-error {{cannot combine with previous 'class' declaration specifier}} +typedef Class1 Type1; // rdar : // 8307865 struct CodeCompleteConsumer { -- cgit v1.2.1