c++/6855: g++ segfault
simon.patarin@inria.fr
simon.patarin@inria.fr
Wed May 29 01:06:00 GMT 2002
>Number: 6855
>Category: c++
>Synopsis: g++ segfault
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 29 01:06:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: g++
>Release: 3.1
>Organization:
>Environment:
Debian Linux unstable with stock 2.4.18 kernel
Reading specs from /usr/lib/gcc-lib/i386-linux/3.1/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=$(prefix)/share/man --infodir=$(prefix)/share/info --with-gxx-include-dir=$(prefix)/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.1 (Debian)
>Description:
g++ segfaults with the one-liner source given as attachement
The only statement of the source is to initialize a global int variable in which there is call to abort():
int foo = (abort(), 0);
There is no such problem with g++ version 2.95.x
>How-To-Repeat:
g++-3.1 -c test.c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c"
I2luY2x1ZGUgPHN0ZGxpYi5oPgoKc3RhdGljIGludCBmb28gPSAoYWJvcnQoKSwgMCk7Cg==
More information about the Gcc-bugs
mailing list