This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gengtype-yacc.y: type clash
- From: Akim Demaille <akim at epita dot fr>
- To: GCC Patches <gcc-patches at gnu dot org>
- Date: 19 Jun 2002 13:47:07 +0200
- Subject: gengtype-yacc.y: type clash
Index: ChangeLog
from Akim Demaille <akim@epita.fr>
* gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
$$ = $1 type clashes.
Index: gengtype-yacc.y
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/gengtype-yacc.y,v
retrieving revision 1.4
diff -u -u -r1.4 gengtype-yacc.y
--- gengtype-yacc.y 7 Jun 2002 19:19:42 -0000 1.4
+++ gengtype-yacc.y 19 Jun 2002 11:45:09 -0000
@@ -73,6 +73,7 @@
lexer_toplevel_done = 1;
}
';'
+ {}
| ENT_STRUCT options '{' struct_fields '}'
{
new_structure ($1->u.s.tag, UNION_P ($1), &lexer_line,
@@ -80,6 +81,7 @@
lexer_toplevel_done = 1;
}
';'
+ {}
;
externstatic: ENT_EXTERNSTATIC options lasttype ID semiequal