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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The minimal example from an SO answer:

template<int>
struct S {
  template<int> static void f();
  S() { void(*g)(char) = [](auto) { f<0>; }; }
};
S<0> s;

Reply via email to