diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-09-13 12:27:00 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-09-13 12:27:00 +0000 |
commit | 0ad7e054218ed4a8df8843a96bf59e2c8c4b4f9b (patch) | |
tree | 0da6625b96d187b94a641a70493b028179f7e64e /gcc/c-parser.c | |
parent | e9c15f6eaa2e4e07d27ce12485361d719df16ef5 (diff) | |
download | gcc-0ad7e054218ed4a8df8843a96bf59e2c8c4b4f9b.zip gcc-0ad7e054218ed4a8df8843a96bf59e2c8c4b4f9b.tar.gz gcc-0ad7e054218ed4a8df8843a96bf59e2c8c4b4f9b.tar.bz2 |
c-parser.c (c_parser_struct_declaration): Check for a null return.
gcc/
* c-parser.c (c_parser_struct_declaration): Check for a null return.
From-SVN: r128459
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 4bbc39d..91ba850 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -2033,7 +2033,8 @@ c_parser_struct_declaration (c_parser *parser) tree attrs = NULL; ret = grokfield (build_id_declarator (NULL_TREE), specs, NULL_TREE, &attrs); - decl_attributes (&ret, attrs, 0); + if (ret) + decl_attributes (&ret, attrs, 0); } return ret; } |