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

--- Comment #1 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x000000000069f0d6 in maybe_process_partial_specialization (type=0x0) at
../../gcc/gcc/cp/pt.c:976
976       if (CLASS_TYPE_P (type) && CLASSTYPE_LAMBDA_EXPR (type))
(gdb) bt
#0  0x000000000069f0d6 in maybe_process_partial_specialization (type=0x0) at
../../gcc/gcc/cp/pt.c:976
#1  0x0000000000658ad0 in cp_parser_class_head (parser=0x7ffff7890850,
nested_name_specifier_p=0x7fffffffc5bc) at ../../gcc/gcc/cp/parser.c:24625
#2  0x0000000000656bf7 in cp_parser_class_specifier_1 (parser=0x7ffff7890850)
at ../../gcc/gcc/cp/parser.c:23920
#3  0x000000000065810e in cp_parser_class_specifier (parser=0x7ffff7890850) at
../../gcc/gcc/cp/parser.c:24294
#4  0x00000000006496a0 in cp_parser_type_specifier (parser=0x7ffff7890850,
flags=33, decl_specs=0x7fffffffc960, is_declaration=true,
declares_class_or_enum=0x7fffffffc820,
    is_cv_qualifier=0x7fffffffc81c) at ../../gcc/gcc/cp/parser.c:17797
#5  0x0000000000643c0d in cp_parser_decl_specifier_seq (parser=0x7ffff7890850,
flags=33, decl_specs=0x7fffffffc960, declares_class_or_enum=0x7fffffffc94c) at
../../gcc/gcc/cp/parser.c:14436
#6  0x0000000000662b58 in cp_parser_single_declaration (parser=0x7ffff7890850,
checks=0x0, member_p=true, explicit_specialization_p=false,
friend_p=0x7fffffffca4a)
    at ../../gcc/gcc/cp/parser.c:29499
#7  0x0000000000661a2d in cp_parser_template_declaration_after_parameters
(parser=0x7ffff7890850, parameter_list=0x7ffff79bd7a0, member_p=true) at
../../gcc/gcc/cp/parser.c:29163
#8  0x00000000006629d4 in cp_parser_explicit_template_declaration
(parser=0x7ffff7890850, member_p=true) at ../../gcc/gcc/cp/parser.c:29428
#9  0x0000000000662a32 in cp_parser_template_declaration_after_export
(parser=0x7ffff7890850, member_p=true) at ../../gcc/gcc/cp/parser.c:29447
#10 0x00000000006463a2 in cp_parser_template_declaration
(parser=0x7ffff7890850, member_p=true) at ../../gcc/gcc/cp/parser.c:15947
#11 0x00000000006595a5 in cp_parser_member_declaration (parser=0x7ffff7890850)
at ../../gcc/gcc/cp/parser.c:24963
#12 0x000000000065947d in cp_parser_member_specification_opt
(parser=0x7ffff7890850) at ../../gcc/gcc/cp/parser.c:24890
#13 0x0000000000656fc0 in cp_parser_class_specifier_1 (parser=0x7ffff7890850)
at ../../gcc/gcc/cp/parser.c:23987
#14 0x000000000065810e in cp_parser_class_specifier (parser=0x7ffff7890850) at
../../gcc/gcc/cp/parser.c:24294
#15 0x00000000006496a0 in cp_parser_type_specifier (parser=0x7ffff7890850,
flags=1, decl_specs=0x7fffffffd200, is_declaration=true,
declares_class_or_enum=0x7fffffffd080,
    is_cv_qualifier=0x7fffffffd07c) at ../../gcc/gcc/cp/parser.c:17797
#16 0x0000000000643c0d in cp_parser_decl_specifier_seq (parser=0x7ffff7890850,
flags=1, decl_specs=0x7fffffffd200, declares_class_or_enum=0x7fffffffd1ac) at
../../gcc/gcc/cp/parser.c:14436
#17 0x0000000000642072 in cp_parser_simple_declaration (parser=0x7ffff7890850,
function_definition_allowed_p=true, maybe_range_for_decl=0x0) at
../../gcc/gcc/cp/parser.c:13690
#18 0x0000000000641fd4 in cp_parser_block_declaration (parser=0x7ffff7890850,
statement_p=false) at ../../gcc/gcc/cp/parser.c:13637
#19 0x0000000000641c9f in cp_parser_declaration (parser=0x7ffff7890850) at
../../gcc/gcc/cp/parser.c:13510
#20 0x0000000000641da3 in cp_parser_toplevel_declaration
(parser=0x7ffff7890850) at ../../gcc/gcc/cp/parser.c:13539
#21 0x000000000062ea32 in cp_parser_translation_unit (parser=0x7ffff7890850) at
../../gcc/gcc/cp/parser.c:4793
#22 0x0000000000691564 in c_parse_file () at ../../gcc/gcc/cp/parser.c:44081
#23 0x000000000086a20a in c_common_parse_file () at
../../gcc/gcc/c-family/c-opts.c:1188
#24 0x000000000111b2f9 in compile_file () at ../../gcc/gcc/toplev.c:458
#25 0x000000000111e6f5 in do_compile () at ../../gcc/gcc/toplev.c:2327
#26 0x000000000111ea0e in toplev::main (this=0x7fffffffd556, argc=21,
argv=0x7fffffffd668) at ../../gcc/gcc/toplev.c:2466
#27 0x000000000229a285 in main (argc=21, argv=0x7fffffffd668) at
../../gcc/gcc/main.c:39

Reply via email to