https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69000
Bug ID: 69000 Summary: regression: internal compiler error: Segmentation fault Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rogero at howzatt dot demon.co.uk Target Milestone: --- Created attachment 37093 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37093&action=edit ice-example.cpp: Example program demonstrating the fault I've an ICE (segfault) with gcc trunk that compiles without fault using gcc 5.3.0 and earlier. I attach a stripped down example that fails with the same symptoms as the original source file. On Redhat Linux 2.6.32-573.3.1.el6.x86_64 using gcc-trunnk as at 2015-12-11: 0xcfe20f crash_signal ../../gcc/toplev.c:334 0x93ab64 tree_check(tree_node const*, char const*, int, char const*, tree_code) ../../gcc/tree.h:3252 0x93ab64 symbol_table::decl_assembler_name_hash(tree_node const*) ../../gcc/symtab.c:80 0x93fe20 symtab_node::get_for_asmname(tree_node const*) ../../gcc/symtab.c:924 0x93ff6d symtab_node::verify_base() ../../gcc/symtab.c:994 0x940aef symtab_node::verify() ../../gcc/symtab.c:1172 0x940bef symtab_node::verify_symtab_nodes() ../../gcc/symtab.c:1190 0x9533bb symtab_node::checking_verify_symtab_nodes() ../../gcc/cgraph.h:602 0x9533bb symbol_table::compile() ../../gcc/cgraphunit.c:2364 0x955932 symbol_table::compile() ../../gcc/cgraphunit.c:2520 0x955932 symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2546 It also fails on wandbox http://melpon.org/wandbox/ using 'gcc HEAD 6.0.0 20151220' showing a slightly different call stack: Start prog.cc:16:1: internal compiler error: Segmentation fault } ^ 0xaa1bbf crash_signal /home/heads/gcc/gcc-source/gcc/toplev.c:334 0xccc002 make_decl_rtl(tree_node*) /home/heads/gcc/gcc-source/gcc/varasm.c:1350 0xccf57b assemble_variable(tree_node*, int, int, int) /home/heads/gcc/gcc-source/gcc/varasm.c:2144 0xcd3400 varpool_node::assemble_decl() /home/heads/gcc/gcc-source/gcc/varpool.c:583 0x7af053 output_in_order /home/heads/gcc/gcc-source/gcc/cgraphunit.c:2220 0x7af3bd symbol_table::compile() /home/heads/gcc/gcc-source/gcc/cgraphunit.c:2457 0x7b1432 symbol_table::compile() /home/heads/gcc/gcc-source/gcc/cgraphunit.c:2527 0x7b1432 symbol_table::finalize_compilation_unit() /home/heads/gcc/gcc-source/gcc/cgraphunit.c:2553 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. 1 Finish