[Bug c++/84979] New: [6/7/8 Regression] ICE with auto as template parameter and -fconcepts
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 19 22:29:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84979
Bug ID: 84979
Summary: [6/7/8 Regression] ICE with auto as template parameter
and -fconcepts
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
Target Milestone: ---
The following invalid code snippet (compiled with "-fconcepts")
triggers an ICE since GCC 6.1.0:
=====================================
template<typename> void foo() {}
void bar()
{
foo<auto>();
}
=====================================
bug.cc:6:1: internal compiler error: Segmentation fault
}
^
0xebabbf crash_signal
../../gcc/gcc/toplev.c:325
0xad7774 tree_check(tree_node const*, char const*, int, char const*, tree_code)
../../gcc/gcc/tree.h:3390
0xad7774 symbol_table::decl_assembler_name_hash(tree_node const*)
../../gcc/gcc/symtab.c:83
0xadb520 symtab_node::get_for_asmname(tree_node const*)
../../gcc/gcc/symtab.c:959
0xadb61f symtab_node::verify_base()
../../gcc/gcc/symtab.c:1029
0xae7a13 cgraph_node::verify_node()
../../gcc/gcc/cgraph.c:3131
0xadc0ec symtab_node::verify()
../../gcc/gcc/symtab.c:1205
0xadc1b7 symtab_node::verify_symtab_nodes()
../../gcc/gcc/symtab.c:1225
0xaf04a4 symtab_node::checking_verify_symtab_nodes()
../../gcc/gcc/cgraph.h:620
0xaf04a4 symbol_table::compile()
../../gcc/gcc/cgraphunit.c:2540
0xaf23e9 symbol_table::compile()
../../gcc/gcc/cgraphunit.c:2537
0xaf23e9 symbol_table::finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2717
Please submit a full bug report, [etc.]
More information about the Gcc-bugs
mailing list