https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113683
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-12-19 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. GCC does accepts: ``` struct A {int t1;}; template<const int* v> struct I{}; class B : A { static const B b; int t; }; template struct I<&B::b.t1>; // fails on static_cast ``` which is similar.