[Bug c++/124617] meta::extract fails (or ICEs) for static member function templates of class templates

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 25 19:28:22 GMT 2026


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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
ICE without <meta>:

template <class T>
struct S {
  template <class U>
  static void f() { }

  static constexpr auto p = ^^f<unsigned>;
};

consteval void g () { S<int>::p; }
void gg () { g (); }


More information about the Gcc-bugs mailing list