norbert@UUNET.UU.NET (Norbert Kiesel) (10/05/89)
The following (wrong) program causes cc1plus to crash with segmentation
violation.
The compiler runs on a Sun 3/50 with SunOS 4.0.1
% cat seg-vio.cc
struct I { int i; } // ; missing
main() { I::i; }
% g++ -v -o seg-vio seg-vio.cc
g++ version 1.35.0
/global/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 seg-vio.cc /tmp/cca02250.cpp
GNU CPP version 1.35
/global/lib/gcc-cc1plus /tmp/cca02250.cpp -quiet -dumpbase seg-vio.cc -noreg -version -o /tmp/cca02250.s
GNU C++ version 1.35.0 (68k, MIT syntax) compiled by GNU C version 1.35.
In function struct I main ():
seg-vio.cc:3: Segmentation violation
g++: Program cc1plus got fatal signal 11.
*** Error code 1
make: Warning: Target `seg-vio' not remade because of errors
Compilation finished at Thu Oct 5 14:18:19
so long
Norbert
*******************************************************************************
* Norbert Kiesel NN NN KK KK *
* Institut fuer Informatik III NNN NN KK KK *
* RWTH Aachen NN N NN KK KK *
* NN N NN KKKK *
* Tel.: (0241) 80-7266 NN N NN KKKK *
* NN N NN KK KK *
* EUNET: norbert@rwthi3.uucp NN N NN KK KK *
* ...!mcvax!unido!rwthi3!norbert NN NNN KK KK *
*******************************************************************************