[gnu.g++.bug] test13 gets core dump in libg++-1.25.0 with g++-1.27.0

zhao@wiener.usc.edu (09/20/88)

Machine: SUN3/60M, OS 3.4
Compiler: g++-1.27.0 compiled with gcc-1.28


All test files work fine except test13. Here is the script:

[1]: make GFLAGS="-v -g -O -fchar-charconst" test13
genclass int val SLList
g++ -v -g -O -fchar-charconst -c  intSLList.cc
g++ version 1.27.0
 /usr/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__OPTIMIZE__ intSLList.cc /tmp/cca09591.cpp
GNU CPP version 1.27.0
 /usr/local/lib/gcc-c++ /tmp/cca09591.cpp -quiet -dumpbase intSLList.cc -fchar-charconst -opt -version -G -o /tmp/cca09591.s
GNU C++ version 1.27.0 (68k, MIT syntax) compiled by GNU C version 1.28.
 as -mc68020 /tmp/cca09591.s -o intSLList.o
genclass int val DLList
g++ -v -g -O -fchar-charconst -c  intDLList.cc
g++ version 1.27.0
 /usr/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__OPTIMIZE__ intDLList.cc /tmp/cca09601.cpp
GNU CPP version 1.27.0
 /usr/local/lib/gcc-c++ /tmp/cca09601.cpp -quiet -dumpbase intDLList.cc -fchar-charconst -opt -version -G -o /tmp/cca09601.s
GNU C++ version 1.27.0 (68k, MIT syntax) compiled by GNU C version 1.28.
 as -mc68020 /tmp/cca09601.s -o intDLList.o
g++ -v -g -O -fchar-charconst -c  test13.cc
g++ version 1.27.0
 /usr/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__OPTIMIZE__ test13.cc /tmp/cca09605.cpp
GNU CPP version 1.27.0
 /usr/local/lib/gcc-c++ /tmp/cca09605.cpp -quiet -dumpbase test13.cc -fchar-charconst -opt -version -G -o /tmp/cca09605.s
GNU C++ version 1.27.0 (68k, MIT syntax) compiled by GNU C version 1.28.
 as -mc68020 /tmp/cca09605.s -o test13.o
g++ test13.o  intSLList.o intDLList.o  -o test13 -lg++ -lm
Script started on Mon Sep 19 14:13:44 1988
[2]: test13
intSLList a: length() = 0

prepending...90 75 84 81 74 99 52 85 86 47 
a: length() = 10
47 86 85 52 99 74 81 84 75 90 
appending...8 21 66 51 88 21 66 19 52 29 
a: length() = 20
47 86 85 52 99 74 81 84 75 90 8 21 66 51 88 21 66 19 52 29 
b = a: length() = 20
47 86 85 52 99 74 81 84 75 90 8 21 66 51 88 21 66 19 52 29 
remove_front of first 10 elements:
47 86 85 52 99 74 81 84 75 90 
b: length() = 10
8 21 66 51 88 21 66 19 52 29 
inserting after sixth element...22 
b: length() = 11
8 21 66 51 88 21 22 66 19 52 29 
after b.clear() b: length() = 0

Segmentation fault (core dumped)
[3]: exit
script done on Mon Sep 19 14:14:45 1988

Since I have no gdb+ currently, sorry I cannot supply
any further information.

Ken	- zhao%wiener.usc.edu@oberon.usc.edu