https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87313
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- You fail to see that g may clobber *p because p points to global memory. GCC knwos that malloc doesn't do such clobbering but you didn't tell GCC that g does not (looks like you actually can't do that right now).