[gnu.g++.bug] bison vs GNU C++

mdt@YAHI.STANFORD.EDU (Michael Tiemann) (03/30/89)

If you get parse errors when you use the latest copy of bison to make
cplus-parse.tab.c, this fix to bison will solve those problems:

yahi% diff -c2 reader.c~ reader.c
*** reader.c~	Wed Mar  1 09:37:33 1989
--- reader.c	Wed Mar 29 14:02:15 1989
***************
*** 124,128 ****
    /* fattrs winds up in the .tab.c file, before bison.simple.  */
    fprintf(fattrs, LTYPESTR);
!   if (yylsp_needed)
      {
        if (fdefines)
--- 124,129 ----
    /* fattrs winds up in the .tab.c file, before bison.simple.  */
    fprintf(fattrs, LTYPESTR);
!   /* tiemann fixed bug here.  */
!   if (1 || yylsp_needed)
      {
        if (fdefines)