This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A tricky C++ bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]