https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114962
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-05-06 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, This looks like another "pointer to member function" issue (I changed the array to being int and it works). If we move the static assert/lamdba outside of the class, it works; so it looks like maybe (non-)complete class context issue going on here.