Issue diagnostic when objective-c's @interface is preceeded by a type specifier.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45491 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Parse/Parser.cpp b/Parse/Parser.cpp
index c5a21c7..04cfea6 100644
--- a/Parse/Parser.cpp
+++ b/Parse/Parser.cpp
@@ -379,6 +379,9 @@
       SkipUntil(tok::semi); // FIXME: better skip?
       return 0;
     }
+    const char *PrevSpec = 0;
+    if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec))
+      Diag(AtLoc, diag::err_invalid_decl_spec_combination, PrevSpec);
     return ParseObjCAtInterfaceDeclaration(AtLoc, DS.getAttributes()); 
   }