http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49569
Summary: -std=gnu++0x causes segmentation fault
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 24623
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24623
gzipped C++ source code
I just tried to compile the pokerth-0.8.3-6.fc16 package with the latest
trunk snapshot 20110625 on an AMD x86_64 box.
The compiler said
./include/c++/4.7.0/bits/stl_pair.h:137:45: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
gdb says
Program received signal SIGSEGV, Segmentation fault.
iterative_hash (k_in=<optimized out>, length=<optimized out>,
initval=<optimized out>)
at ../../src/gcc-4.7-20110625/libiberty/hashtab.c:981
981 case 4 : a+=((hashval_t)k[3]<<24);
Missing separate debuginfos, use: debuginfo-install glibc-2.13.90-13.x86_64
gmp-4.3.2-3.fc15.x86_64 mpfr-3.0.0-4.fc15.x86_64
(gdb) p k
$1 = (const unsigned char *) 0x8 <Address 0x8 out of bounds>
Preprocessed source code attached. Flag -std=gnu++0x required.