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

            Bug ID: 99904
           Summary: ICE: in tsubst_pack_expansion, at cp/pt.c:13056
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

maybe dup of PR 99595.

https://godbolt.org/z/zarsP11Y6

template <class> concept C = true;
template <class> struct A {};
template <template <C...> class>
struct S {};
constexpr S<A> s;


<source>:5:14: internal compiler error: in tsubst_pack_expansion, at
cp/pt.c:13056
    5 | constexpr S<A> s;
      |              ^
0x1cfcc99 internal_error(char const*, ...)
        ???:0
0x6baa77 fancy_abort(char const*, int, char const*)
        ???:0
0x9305c7 tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x739b56 tsubst_constraint(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x739cd1 tsubst_constraint_info(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x929233 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ???:0
0x97fa1d finish_template_type(tree_node*, tree_node*, int)
        ???:0
0x8e14fd c_parse_file()
        ???:0
0xa601f2 c_common_parse_file()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to