https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77433
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Summary|warn about pointer that |warn about object that |escapes its scope |escapes its scope Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There might be already a bug report about this same thing. Basically we emit a "clobber" for the objects when the scope ends.