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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
It might be possible to run the pass earlier to avoid this problem but I
haven't managed to find a spot that didn't regress some -Wdangling-pointer
tests (at least g++.dg/warn/Wdangling-pointer-2.C).  Alternatively, if forwprop
moves an access past a clobber (or whatever pass does it) it might be taught to
suppress the warning when it does.

Reply via email to