https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81340
--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Author: aldyh Date: Wed Sep 13 15:56:08 2017 New Revision: 252136 URL: https://gcc.gnu.org/viewcvs?rev=252136&root=gcc&view=rev Log: Set DECL_VALUE_EXPR after a debug stmt is generated (PR sanitizer/81340). 2017-07-28 Martin Liska <mli...@suse.cz> PR sanitizer/81340 * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after gimple_build_debug_bind. 2017-07-28 Martin Liska <mli...@suse.cz> PR sanitizer/81340 * g++.dg/asan/pr81340.C: New test. Added: branches/range-gen2/gcc/testsuite/g++.dg/asan/pr81340.C Modified: branches/range-gen2/gcc/ChangeLog branches/range-gen2/gcc/sanopt.c branches/range-gen2/gcc/testsuite/ChangeLog