This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) patch for WIFEXITED bug
- To: egcs-patches at cygnus dot com
- Subject: (C++) patch for WIFEXITED bug
- From: Jason Merrill <jason at cygnus dot com>
- Date: Thu, 15 Oct 1998 19:44:18 -0700
Applied. Fixes g++.other/lookup3.C.
1998-10-15 Jason Merrill <jason@yorick.cygnus.com>
* spew.c (yylex): Clear looking_for_typename if we got
'enum { ... };'.
Index: spew.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/spew.c,v
retrieving revision 1.17
diff -c -p -r1.17 spew.c
*** spew.c 1998/10/06 05:04:32 1.17
--- spew.c 1998/10/16 02:16:48
*************** yylex ()
*** 401,406 ****
--- 401,411 ----
if (tmp_token.yychar != '~')
got_object = NULL_TREE;
+ /* Clear looking_for_typename if we got 'enum { ... };'. */
+ if (tmp_token.yychar == '{' || tmp_token.yychar == ':'
+ || tmp_token.yychar == ';')
+ looking_for_typename = 0;
+
yylval = tmp_token.yylval;
yychar = tmp_token.yychar;
end_of_file = tmp_token.end_of_file;