diff options
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 3ec1764612..8d4705a7bf 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -888,9 +888,10 @@ ParseStructDeclaration(DeclSpec &DS, SourceLocation DSStart = Tok.getLocation(); ParseSpecifierQualifierList(DS); - // If there are no declarators, issue a warning. + // If there are no declarators, this is a free-standing declaration + // specifier. Let the actions module cope with it. if (Tok.is(tok::semi)) { - Diag(DSStart, diag::w_no_declarators); + Actions.ParsedFreeStandingDeclSpec(CurScope, DS); return; } |