aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r--gcc/c-parser.c3
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;
}