Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!lll-winken!pacbell!indetech!lrs From: lrs@indetech.com (Lynn Slater) Newsgroups: gnu.g++.bug Subject: Apparent g++ bug probably due to wrong bison version Summary: Which bison version(s) are needed to build g++? Message-ID: <1989Oct9.145738.29478@indetech.com> Date: 9 Oct 89 14:57:38 GMT References: <1989Oct4.061118.16060@paris.ics.uci.edu> Reply-To: lrs@indetech.UUCP (Lynn Slater) Distribution: gnu Organization: Independence Technologies, Inc. Fremont, CA Lines: 35 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