https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103746
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- That patch is changing extactly this code. In fact MSVC rejects this code for the same reason as GCC. Jason added -fimplicit-constexpr and then found that there was some invalid code accepted and he fixed that.