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

            Bug ID: 100006
           Summary: ICE: in dependent_type_p, at cp/pt.c:26745
           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: ---

Congratulations on hitting the 10,000 reports mark!

https://godbolt.org/z/dhPqd4595

template <class... Ts>
auto f(Ts...) {
  [] { enum class e : Ts {}; };
}

int main() {
  f(0, true);
}

<source>:3:19: internal compiler error: in dependent_type_p, at cp/pt.c:26745
    3 |   [] { enum class e : Ts {}; };
      |                   ^
0x1d00959 internal_error(char const*, ...)
        ???:0
0x6bb099 fancy_abort(char const*, int, char const*)
        ???:0
0x8fa338 dependent_type_p(tree_node*)
        ???:0
0x78b617 start_enum(tree_node*, tree_node*, tree_node*, tree_node*, bool,
bool*)
        ???:0
0x92ae1d lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ???:0
0x91766d tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x917717 tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x94abba tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x91d54f instantiate_decl(tree_node*, bool, bool)
        ???:0
0x7c7a3e maybe_instantiate_decl(tree_node*)
        ???:0
0x7c91a0 mark_used(tree_node*, int)
        ???:0
0x6de907 build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ???:0
0x981c3c finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ???:0
0x8e224d c_parse_file()
        ???:0
0xa612e2 c_common_parse_file()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to