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

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
trippels@gcc2-power8 ~ % cat fun_test.ii
template <typename _Tp> using decay_t = _Tp;
template <typename> struct A;
template <typename> struct B { B(A<int>); };
template <typename> struct C {
  template <typename U> using constructor = B<decay_t<U>>;
  typedef constructor<int> dummy;
};
template <typename> struct D {};
C<int> a;
D<B<int>> fn1() { fn1, a; }

trippels@gcc2-power8 ~ % g++ -g -c fun_test.ii
fun_test.ii:10:27: internal compiler error: in
schedule_generic_params_dies_gen, at dwarf2out.c:24143
 D<B<int>> fn1() { fn1, a; }
                           ^
0x10681ebf schedule_generic_params_dies_gen
        ../../gcc/gcc/dwarf2out.c:24143
0x10681ebf gen_struct_or_union_type_die
        ../../gcc/gcc/dwarf2out.c:22440
0x10681ebf gen_tagged_type_die
        ../../gcc/gcc/dwarf2out.c:22682
0x10666bef gen_type_die_with_usage
        ../../gcc/gcc/dwarf2out.c:22847
0x10667cf7 gen_type_die
        ../../gcc/gcc/dwarf2out.c:22902
0x1066f8c7 modified_type_die
        ../../gcc/gcc/dwarf2out.c:11454
0x10672053 add_type_attribute
        ../../gcc/gcc/dwarf2out.c:19033
0x10675bdf gen_formal_parameter_die
        ../../gcc/gcc/dwarf2out.c:19666
0x1066807f gen_formal_types_die
        ../../gcc/gcc/dwarf2out.c:19764
0x10669f93 gen_subprogram_die
        ../../gcc/gcc/dwarf2out.c:20667
0x1066bb47 gen_decl_die
        ../../gcc/gcc/dwarf2out.c:23471
0x10681bc3 gen_member_die
        ../../gcc/gcc/dwarf2out.c:22395
0x10681bc3 gen_struct_or_union_type_die
        ../../gcc/gcc/dwarf2out.c:22479
0x10681bc3 gen_tagged_type_die
        ../../gcc/gcc/dwarf2out.c:22682
0x10666bef gen_type_die_with_usage
        ../../gcc/gcc/dwarf2out.c:22847
0x10667cf7 gen_type_die
        ../../gcc/gcc/dwarf2out.c:22902
0x10685f0f retry_incomplete_types
        ../../gcc/gcc/dwarf2out.c:19409
0x10685f0f dwarf2out_finish
        ../../gcc/gcc/dwarf2out.c:27388
Please submit a full bug report

Reply via email to