https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 121579, which changed state.
Bug 121579 Summary: static_cast involving pointers to members is too loose during constant evaluation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121579 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE