[Bug c++/58597] [c++11] ICE with lambda in default argument of template function
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 14 08:02:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58597
--- Comment #4 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
The ICE disappered on the 4.9 branch in GCC 4.9.2.
But the testcase still crashes trunk with a different stack trace:
bug.cc:6:12: internal compiler error: Segmentation fault
A<int> a = 0;
^
0xcdc42f crash_signal
../../gcc/gcc/toplev.c:372
0x6943ae tsubst_default_argument(tree_node*, tree_node*, tree_node*, int)
../../gcc/gcc/cp/pt.c:10496
0x629f9f convert_default_arg(tree_node*, tree_node*, tree_node*, int, int)
../../gcc/gcc/cp/call.c:6774
0x62a91d build_over_call
../../gcc/gcc/cp/call.c:7301
0x62f9b4 convert_like_real
../../gcc/gcc/cp/call.c:6253
0x62f799 convert_like_real
../../gcc/gcc/cp/call.c:6384
0x6395d7 build_user_type_conversion(tree_node*, tree_node*, int, int)
../../gcc/gcc/cp/call.c:3831
0x78897e ocp_convert(tree_node*, tree_node*, int, int, int)
../../gcc/gcc/cp/cvt.c:875
0x7969f5 expand_default_init
../../gcc/gcc/cp/init.c:1661
0x7969f5 expand_aggr_init_1
../../gcc/gcc/cp/init.c:1830
0x7971e4 build_aggr_init(tree_node*, tree_node*, int, int)
../../gcc/gcc/cp/init.c:1582
0x66cddc build_aggr_init_full_exprs
../../gcc/gcc/cp/decl.c:5780
0x66cddc check_initializer
../../gcc/gcc/cp/decl.c:5924
0x66e79c cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
../../gcc/gcc/cp/decl.c:6607
0x756539 cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:17290
0x758185 cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:11600
0x7585b3 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:11474
0x760689 cp_parser_declaration
../../gcc/gcc/cp/parser.c:11371
0x76098a cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:11257
0x760cc7 cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:4108
Please submit a full bug report, [etc.]
More information about the Gcc-bugs
mailing list