https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95308
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:7e64ef0dfde9482d6004a406dd64bb7da109122f commit r10-8352-g7e64ef0dfde9482d6004a406dd64bb7da109122f 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.