https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106064
Alex Coplan <acoplan at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #14 from Alex Coplan <acoplan at gcc dot gnu.org> --- Closing as invalid, then, given that (as Jakub says) f is UB and the codegen for g is correct.