[Bug c++/82836] New: [8 Regression] ICE on valid code

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Nov 4 20:59:00 GMT 2017


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

            Bug ID: 82836
           Summary: [8 Regression] ICE on valid code
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: nathan at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42545
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42545&action=edit
test-case

Attached test-case ICEs from r253647:

$ g++ ice4.ii
ice4.ii:447:26: warning: inline variables are only available with -std=c++17 or
-std=gnu++17
   inline error_condition make_error_condition_wrap_class_string;
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: internal compiler error: Segmentation fault
0xd9d4ff crash_signal
        ../../gcc/toplev.c:324
0x6ce0b5 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3087
0x6ce0b5 mangled_decl_hash::hash(tree_node*)
        ../../gcc/cp/decl2.c:115
0x6ce0b5 hash_table<mangled_decl_hash, xcallocator>::expand()
        ../../gcc/hash-table.h:755
0x6ce421 hash_table<mangled_decl_hash,
xcallocator>::find_slot_with_hash(tree_node* const&, unsigned int,
insert_option)
        ../../gcc/hash-table.h:879
0x6cdb99 record_mangling(tree_node*, bool)
        ../../gcc/cp/decl2.c:4405
0x711941 mangle_decl(tree_node*)
        ../../gcc/cp/mangle.c:3814
0x1068112 decl_assembler_name(tree_node*)
        ../../gcc/tree.c:673
0x96e5bb symbol_table::insert_to_assembler_name_hash(symtab_node*, bool)
        ../../gcc/symtab.c:173
0x970acc symbol_table::symtab_initialize_asm_name_hash()
        ../../gcc/symtab.c:265
0x98883d analyze_functions
        ../../gcc/cgraphunit.c:1294
0x988f52 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2690


More information about the Gcc-bugs mailing list