[gnu.g++.bug] Apparent g++ bug probably due to wrong bison version

lrs@indetech.com (Lynn Slater) (10/09/89)

When compiling libg++ 1.36 while installing g++1.36.0, I get
>   File.cc: In method File::File (int, char *, enum io_mode):
>   File.cc:258: Segmentation violation

I also get related errors on many other files.

GDB reveils that we are
> #0  0x3b58c in build_modify_expr (lhs=(tree) 0x160420, modifycode=NOP_EXPR, rhs=(tree) 0x18) (cplus-typeck.c line 4305)

Note that the rhs is a bad address.

Moving up shows that
> #1  0xcb0c in yyparse () (./cplus-parse.y line 902)

Which is
	| expr_no_commas '=' expr_no_commas
		{ $$ = build_modify_expr ($1, NOP_EXPR, $3); }


This seems to be a valid grammer.  This and the gcc release notes make me
suspect that my bison release (uucp from osu-cis) may not be compatable. My
bison has a Changelog entry of
> Wed Aug 23 15:03:07 1989  Jay Fenlason  (hack at gnu).

Can anybody please tell me if this is a correct version of bison to use.

Has anybody experienced this problem?  Any suggestions?

-- Thanks in Advance. -- Lynn

-- 
===============================================================
Lynn Slater -- lrs@indetech.com or {sun, ames, pacbell}!indetech!lrs
42075 Lawrence Place, Fremont Ca 94538
Office (415) 438-2048; Home (415) 796-4149; Fax (415) 438-2034