https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116900
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- That's working as designed, the author argues using the pointer value is UB. I think we have some duplicates of this report.