This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(C++) patch for WIFEXITED bug


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]