http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60419
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #9 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- Created attachment 32382 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32382&action=edit reduced testcase Here's a reduced testcase that segfaults also on x86_64. markus@x4 tmp % g++ -std=c++11 -c -O2 -c test.ii ASAN:SIGSEGV ================================================================= ==17160==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x000000d9b9b7 sp 0x7fff7ac203c0 bp 0x0fffef5840a0 T0) #0 0xd9b9b6 in cgraph_function_node(cgraph_node*, availability*) ../../gcc/gcc/cgraph.c:2966 #1 0x25e6923 in propagate_pure_const ../../gcc/gcc/ipa-pure-const.c:1185 #2 0x25e6923 in propagate ../../gcc/gcc/ipa-pure-const.c:1483 #3 0x25e6923 in execute ../../gcc/gcc/ipa-pure-const.c:1536 #4 0x14b93cd in execute_one_pass(opt_pass*) ../../gcc/gcc/passes.c:2229 #5 0x14badd0 in execute_ipa_pass_list(opt_pass*) ../../gcc/gcc/passes.c:2607 #6 0xdb2bb1 in ipa_passes ../../gcc/gcc/cgraphunit.c:2084 #7 0xdb2bb1 in compile() ../../gcc/gcc/cgraphunit.c:2174 #8 0xdb484a in finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2329 #9 0x84561a in cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4610 #10 0x16aa252 in compile_file ../../gcc/gcc/toplev.c:562 #11 0x16af0db in do_compile ../../gcc/gcc/toplev.c:1914 #12 0x16af0db in toplev_main(int, char**) ../../gcc/gcc/toplev.c:1990 #13 0x7ff8fae69faf in __libc_start_main (/lib/libc.so.6+0x1ffaf) #14 0x5d9460 (/var/tmp/gcc_sani/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus+0x5d9460)