https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61558

            Bug ID: 61558
           Summary: ice in insert_to_assembler_name_hash
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 32971
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32971&action=edit
gzipped C++ source code

The attached source code, when compiled by trunk dated 20140618,
does this 

../results/bin/gcc -c bug150.cc
Swift/Controllers/FileTransfer/FileTransferController.cpp:149:1: internal
compiler error: Segmentation fault
0xa9697f crash_signal
    ../../src/trunk/gcc/toplev.c:337
0x7453b0 insert_to_assembler_name_hash
    ../../src/trunk/gcc/symtab.c:187
0x745f8b insert_to_assembler_name_hash
    ../../src/trunk/gcc/symtab.c:181
0x745f8b symtab_initialize_asm_name_hash()
    ../../src/trunk/gcc/symtab.c:366
0x745f8b symtab_node_for_asm(tree_node const*)
    ../../src/trunk/gcc/symtab.c:379
0x753320 handle_alias_pairs
    ../../src/trunk/gcc/cgraphunit.c:1152
0x756a5c finalize_compilation_unit()
    ../../src/trunk/gcc/cgraphunit.c:2320
0x5b720b cp_write_global_declarations()
    ../../src/trunk/gcc/cp/decl2.c:4647
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.

Compiler source code is

      tree name = DECL_ASSEMBLER_NAME (node->decl);

My guess is that node->decl is NULL.

Reply via email to