This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A tricky C++ bug
- To: "H.J. Lu" <hjl at lucon dot org>
- Subject: Re: A tricky C++ bug
- From: Thomas Kunert <kunert at physik dot tu-dresden dot de>
- Date: Wed, 03 Jun 1998 06:27:19 +0000
- CC: egcs at cygnus dot com
- Organization: TU Dresden
- References: <m0yfvk1-000268C@ocean.lucon.org>
Hi,
G++ has no problem with that code. IMHO, you should not use gcc
for c++ programs.
$ gcc bug.cc
$ ./a.out
Segmentation fault
$ g++ bug.cc
$ ./a.out
$ gcc -v
Reading specs from /opt/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.33/specs
gcc version egcs-2.91.33 19980528 (gcc2 ss-980502 experimental)
$
--
Thomas Kunert