[Bug c++/82794] ICE: Cannot allocate memory for concept with default argument
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 1 14:49:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82794
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-11-01
CC| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirm, all supporting -fconcepts ICE.
However I see following backtrace:
pr82794.cpp:4:10: internal compiler error: in tsubst, at cp/pt.c:13756
template<Foo fun>
^~~
0x7bb3ee tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/cp/pt.c:13756
0x7cc4bc coerce_template_parms
../../gcc/cp/pt.c:8203
0x655011 resolve_variable_concept_check(tree_node*)
../../gcc/cp/constraint.cc:303
0x655224 deduce_constrained_parameter(tree_node*, tree_node*&, tree_node*&)
../../gcc/cp/constraint.cc:328
0x7413ae cp_parser_maybe_constrained_type_specifier
../../gcc/cp/parser.c:17479
0x741541 cp_parser_nonclass_name
../../gcc/cp/parser.c:17570
0x7643c3 cp_parser_type_name
../../gcc/cp/parser.c:17376
0x7643c3 cp_parser_simple_type_specifier
../../gcc/cp/parser.c:17248
0x7613ad cp_parser_type_specifier
../../gcc/cp/parser.c:16894
0x76f836 cp_parser_decl_specifier_seq
../../gcc/cp/parser.c:13684
0x76ff71 cp_parser_parameter_declaration
../../gcc/cp/parser.c:21564
0x771286 cp_parser_template_parameter
../../gcc/cp/parser.c:15509
0x771286 cp_parser_template_parameter_list
../../gcc/cp/parser.c:15098
0x7756ee cp_parser_explicit_template_declaration
../../gcc/cp/parser.c:27045
0x7756ee cp_parser_template_declaration_after_export
../../gcc/cp/parser.c:27079
0x77bac9 cp_parser_declaration
../../gcc/cp/parser.c:12788
0x77bdfb cp_parser_declaration_seq_opt
../../gcc/cp/parser.c:12715
0x77c10b cp_parser_translation_unit
../../gcc/cp/parser.c:4502
0x77c10b c_parse_file()
../../gcc/cp/parser.c:39021
0x8c3086 c_common_parse_file()
../../gcc/c-family/c-opts.c:1124
More information about the Gcc-bugs
mailing list