https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114816
Joseph S. Myers <jsm28 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Known to work| |15.0 Resolution|--- |FIXED Target Milestone|--- |15.0 --- Comment #4 from Joseph S. Myers <jsm28 at gcc dot gnu.org> --- GCC 15 now consistently rejects all these cases (with unconditional hard errors rather than conditioned on the language version, since they were implicit undefined behavior before C2Y made them constraint violations).