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

--- Comment #4 from raphael grimm <raphael.grimm at kit dot edu> ---
Created attachment 47835
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47835&action=edit
reduced to 11 lines and no includes

http://coliru.stacked-crooked.com/a/be3bbfdf6a59b45e

on g++ (GCC) 9.2.0

output:

main.cpp:8:26: internal compiler error: Segmentation fault
    8 |     using type = B<a.cstr>;
      |                          ^
0xb5c5ff crash_signal
        ../.././gcc/toplev.c:326
0x5cb5c3 resolve_args
        ../.././gcc/cp/call.c:4350
0x5da0c7 build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ../.././gcc/cp/call.c:4469
0x6bbeaf do_class_deduction
        ../.././gcc/cp/pt.c:27497
0x6bbeaf do_auto_deduction(tree_node*, tree_node*, tree_node*, int,
auto_deduction_context, tree_node*, int)
        ../.././gcc/cp/pt.c:27556
0x6c492d convert_template_argument
        ../.././gcc/cp/pt.c:8086
0x6c492d convert_template_argument
        ../.././gcc/cp/pt.c:7859
0x6cf795 coerce_template_parms
        ../.././gcc/cp/pt.c:8589
0x6d0b2a lookup_template_class_1
        ../.././gcc/cp/pt.c:9399
0x6d0b2a lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ../.././gcc/cp/pt.c:9769
0x6ebe5d finish_template_type(tree_node*, tree_node*, int)
        ../.././gcc/cp/semantics.c:3312
0x6929c5 cp_parser_template_id
        ../.././gcc/cp/parser.c:16481
0x692b07 cp_parser_class_name
        ../.././gcc/cp/parser.c:23276
0x695790 cp_parser_qualifying_entity
        ../.././gcc/cp/parser.c:6696
0x695790 cp_parser_nested_name_specifier_opt
        ../.././gcc/cp/parser.c:6382
0x6931f5 cp_parser_simple_type_specifier
        ../.././gcc/cp/parser.c:17839
0x68a1a5 cp_parser_type_specifier
        ../.././gcc/cp/parser.c:17507
0x69d118 cp_parser_type_specifier_seq
        ../.././gcc/cp/parser.c:21985
0x69a4b4 cp_parser_type_id_1
        ../.././gcc/cp/parser.c:21814
0x69e902 cp_parser_type_id
        ../.././gcc/cp/parser.c:21893
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to