https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95308
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:a0c623f58198d3c8f767a181574537720386b468 commit r11-606-ga0c623f58198d3c8f767a181574537720386b468 Author: Richard Biener <rguent...@suse.de> Date: Mon May 25 09:44:50 2020 +0200 tree-optimization/95308 - really avoid forward propagating of &TMR This fixes a hole that still allowed forwarding of TARGET_MEM_REF addresses. 2020-05-25 Richard Biener <rguent...@suse.de> PR tree-optimization/95308 * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize test for TARGET_MEM_REFs. * g++.dg/torture/pr95308.C: New testcase.