http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58373
Bug ID: 58373 Summary: [4.9 Regression] g++: internal compiler error: Segmentation fault (program cc1plus) Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: markus at trippelsdorf dot de Created attachment 30776 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30776&action=edit reduced testcase % gdb --args /var/tmp/gcc_test/usr/local/bin/g++ -c -Wall -Wextra -O3 test.ii Reading symbols from /var/tmp/gcc_test/usr/local/bin/g++...done. (gdb) run Starting program: /var/tmp/gcc_test/usr/local/bin/g++ -c -Wall -Wextra -O3 test.ii [New process 15370] process 15370 is executing new program: /var/tmp/gcc_test/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus Program received signal SIGSEGV, Segmentation fault. [Switching to process 15370] 0x00007ffff765c8fb in __GI___libc_malloc (bytes=200) at malloc.c:2855 2855 victim = _int_malloc(ar_ptr, bytes); (gdb) bt #0 0x00007ffff765c8fb in __GI___libc_malloc (bytes=200) at malloc.c:2855 #1 0x0000000000ff30c0 in xrealloc (oldmem=<optimized out>, size=200) at ../../gcc/libiberty/xmalloc.c:177 #2 0x0000000000bf62ad in reserve<vn_reference_op_struct> (exact=false, reserve=<optimized out>, v=<synthetic pointer>) at ../../gcc/gcc/vec.h:300 #3 vec_safe_reserve<vn_reference_op_struct, va_heap> (exact=false, nelems=<optimized out>, v=<synthetic pointer>) at ../../gcc/gcc/vec.h:668 #4 vec_alloc<vn_reference_op_struct, va_heap> (nelems=<optimized out>, v=<synthetic pointer>) at ../../gcc/gcc/vec.h:689 #5 copy (this=0x1634de0) at ../../gcc/gcc/vec.h:917 #6 copy (this=<synthetic pointer>) at ../../gcc/gcc/vec.h:1460 #7 phi_translate_1 (expr=expr@entry=0x16aef80, set1=set1@entry=0x16b35d0, set2=set2@entry=0x0, pred=pred@entry=0x7ffff70855b0, phiblock=phiblock@entry=0x7ffff706fbc8) at ../../gcc/gcc/tree-ssa-pre.c:1589 #8 0x0000000000bf6adc in phi_translate (expr=0x16aef80, set1=0x16b35d0, set2=0x0, pred=0x7ffff70855b0, phiblock=0x7ffff706fbc8) at ../../gcc/gcc/tree-ssa-pre.c:1774 #9 0x0000000000bf61c4 in phi_translate_1 (expr=expr@entry=0x169b550, set1=set1@entry=0x16b35d0, set2=set2@entry=0x0, pred=pred@entry=0x7ffff70855b0, phiblock=phiblock@entry=0x7ffff706fbc8) at ../../gcc/gcc/tree-ssa-pre.c:1463 #10 0x0000000000bf6adc in phi_translate (expr=0x169b550, set1=0x16b35d0, set2=0x0, pred=0x7ffff70855b0, phiblock=0x7ffff706fbc8) at ../../gcc/gcc/tree-ssa-pre.c:1774 ...