diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-10 02:04:13 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-10 02:04:13 +0000 |
commit | a25b333d8554e5937be5adc417f6300d4d62f1e4 (patch) | |
tree | 85614d17dea3ab509620a7f846f00f9d16e586d0 /gcc/c-parser.c | |
parent | 65a06b62c41c410a0b689156edd3b57feaaa0215 (diff) | |
download | gcc-a25b333d8554e5937be5adc417f6300d4d62f1e4.tar.gz |
* c-parser.c (c_parser_struct_declaration): Handle declaration
specifiers followed by CPP_CLOSE_BRACE.
testsuite:
* gcc.dg/struct-semi-4.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166516 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index e7403b2b182..484dab27f1b 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -2395,7 +2395,8 @@ c_parser_struct_declaration (c_parser *parser) return NULL_TREE; } finish_declspecs (specs); - if (c_parser_next_token_is (parser, CPP_SEMICOLON)) + if (c_parser_next_token_is (parser, CPP_SEMICOLON) + || c_parser_next_token_is (parser, CPP_CLOSE_BRACE)) { tree ret; if (!specs->type_seen_p) |