Commit 110fce11 by Eric Christopher

re PR c/16046 (ICE tree check: expected tree_list, have identifier_node in…

re PR c/16046 (ICE tree check: expected tree_list, have identifier_node in decl_attributes, at attribs.c:151)

2004-09-10  Eric Christopher  <echristo@redhat.com>

	PR c/16046
	* c-parse.in (attribute): Add NULL_TREE for error case
	for error recovery.

2004-09-10  Eric Christopher  <echristo@redhat.com>

	* gcc.dg/20040910-1.c: New test.

From-SVN: r87330
parent 5d709b00
2004-09-10 Eric Christopher <echristo@redhat.com>
PR c/16046
* c-parse.in (attribute): Add NULL_TREE for error case
for error recovery.
2004-09-10 Zack Weinberg <zack@codesourcery.com> 2004-09-10 Zack Weinberg <zack@codesourcery.com>
* c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h. * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
...@@ -6,8 +12,8 @@ ...@@ -6,8 +12,8 @@
* c-lex.c (get_fileinfo): Initialize file_info_tree here, if * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
it's not already been done ... it's not already been done ...
(init_c_lex): ... not here. (init_c_lex): ... not here.
(fe_file_change): Don't call extract_interface_info (fe_file_change): Don't call extract_interface_info.
.
2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk> 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
* c-tree.h (struct c_declspecs): Remove typedef_decl. Add * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
......
...@@ -1359,7 +1359,7 @@ attribute: ...@@ -1359,7 +1359,7 @@ attribute:
'(' '(' attribute_list ')' ')' start_string_translation '(' '(' attribute_list ')' ')' start_string_translation
{ $$ = $5; } { $$ = $5; }
| ATTRIBUTE error start_string_translation | ATTRIBUTE error start_string_translation
{} { $$ = NULL_TREE; }
; ;
attribute_list: attribute_list:
......
2004-09-10 Eric Christopher <echristo@redhat.com>
* gcc.dg/20040910-1.c: New test.
2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk> 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
* gcc.dg/bitfld-9.c: New test. * gcc.dg/bitfld-9.c: New test.
......
/* Tests error recovery for invalid code. */
__attribute__((foo) int f (){} /* { dg-error "syntax error before \"int\"" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment