[gnu.g++.bug] compiling libg++ 1.36.1 with g++ 1.36.2

metz@iam.unibe.ch (Igor Metz) (12/16/89)

Configuration:
  Sun-4  SunOS 4.0.3
  g++    1.36.2 from interviews.stanford.edu
  libg++ 1.36.1 from prep.ai.mit.edu

Problems:
  1) g++ version 1.36.2 (based on GCC 1.36) gets fatal signal 6 and dumps core
     when compiling src/stream.cc
  2) g++ version 1.36.2 (based on GCC 1.36) gets fatal signal 6 and dumps core
     when compiling src/Fix.cc
  3) src/String.cc will not compile

Script:

Problem 1)

newg++ -DBSD -I/rest/GNU/libg++/g++-include -g -O  -Wall -v   -c  stream.cc
g++ version 1.36.2 (based on GCC 1.36)
 /usr/local/lib/1.36.2/gcc-cpp -+ -v -DBSD -I/rest/GNU/libg++/g++-include -undef
 -D__GNUC__ -D__GNUG__ -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__
-D__unix__ -D__OPTIMIZE__ -Wall stream.cc /usr/tmp/cca18453.cpp
GNU CPP version 1.36
 /usr/local/lib/1.36.2/gcc-cc1plus /usr/tmp/cca18453.cpp -quiet -dumpbase stream
.cc -g -O -Wall -version -o /usr/tmp/cca18453.s
GNU C++ version 1.36.2 (based on GCC 1.36) (sparc) compiled by GNU C version 1.36.
default target switches: -mfpu -mepilogue
newg++: Program cc1plus got fatal signal 6.
*** Error code 1
make: Fatal error: Command failed for target `stream.o'
Current working directory /rest/GNU/libg++/src
*** Error code 1
make: Fatal error: Command failed for target `src/libg++.a'

the trace back is:

(gdb) whe
#0  0xed120 in kill ()
#1  0xdb724 in output_63 (...) (...)
#2  0xcb1bc in final_scan_insn (...) (...)
#3  0xca344 in final (...) (...)
#4  0x63524 in rest_of_compilation (...) (...)
#5  0x1ef34 in finish_function (...) (...)
#6  0xaa50 in yyparse (...) (...)
#7  0x620a0 in compile_file (...) (...)
#8  0x64298 in main (...) (...)

Problem 2)

Analog for Fix.cc

Problem 3)

newg++ -DBSD -I../g++-include -g -O -Wall -c String.cc
../g++-include/String.h: In method StrTmp::StrTmp (struct StrRep *):
In file included from String.cc:27:
../g++-include/String.h:413: member `rep' comes from base class needing constructor
../g++-include/String.h: In method StrTmp::StrTmp (class String &):
../g++-include/String.h:415: member `rep' comes from base class needing constructor
../g++-include/String.h: In method StrTmp::StrTmp (class StrTmp &):
../g++-include/String.h:417: member `rep' comes from base class needing constructor
String.cc: In method void String::error (char *)const :
String.cc:39: warning: `volatile' function does return

Igor Metz                    X400: metz@iam.unibe.ch
Institut fuer Informatik     ARPA: metz%iam.unibe.ch@relay.cs.net
und angewandte Mathematik    UUCP: ..!uunet!mcvax!iam.unibe.ch!metz
Universitaet Bern            Phone: (0041) 31 65 49 90
Switzerland		     Fax:   (0041) 31 65 39 65