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

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

This seems to be an old bug, but I haven't found the dup of which bug it is.
Maybe I have reported a similar one a long time ago, but I'm not sure.

template <class... Ts>
void foo(const Ts&...) {
  ([] {
    [](auto) { }([](auto... x) { x; });
  }(), ...);
}

int main() {
  foo(0);
}

https://godbolt.org/z/Y916oqvje

Reply via email to