https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71988
Bug ID: 71988
Summary: [7 Regression] ICE in dump_simple_decl
(gcc/cp/error.c:965)
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
Target Milestone: ---
Hello.
Starting from r238558, we ICE in the following command:
$ g++ -fdump-ipa-cgraph tc.ii
c1plus: internal compiler error: Segmentation fault
0x115f024 crash_signal
../../gcc/toplev.c:335
0x92d8c1 dump_simple_decl
../../gcc/cp/error.c:965
0x92e4f2 dump_decl
../../gcc/cp/error.c:1071
0x937289 decl_as_string(tree_node*, int)
../../gcc/cp/error.c:2880
0x937361 lang_decl_name(tree_node*, int, bool)
../../gcc/cp/error.c:2914
0xa38962 cxx_printable_name_internal
../../gcc/cp/tree.c:2165
0xa38ba9 cxx_printable_name(tree_node*, int)
../../gcc/cp/tree.c:2201
0xc0a369 symtab_node::name() const
../../gcc/symtab.c:523
0xc0a268 symtab_node::asm_name() const
../../gcc/symtab.c:507
0xc278eb analyze_functions
../../gcc/cgraphunit.c:1044
0xc2c2c6 symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2545
where
$ cat tc.ii
struct A
{
} constexpr a;