https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102223

--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Federico Kircheis from comment #6)
> > are you expecting this to go under an existing warning flag, or a new one?
> 
> Ideally -Wall, but there might already be some flags related to dangling
> pointers and references.

Yes, there's one for each of those now: -Wdangling-pointer and
-Wdangling-reference, so I presume that this one would go under the latter...

Reply via email to