https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85081
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Tue Apr 24 15:17:48 2018 New Revision: 259599 URL: https://gcc.gnu.org/viewcvs?rev=259599&root=gcc&view=rev Log: Backport r258924 2018-04-24 Martin Liska <mli...@suse.cz> Backport from mainline 2018-03-28 Jakub Jelinek <ja...@redhat.com> Martin Liska <mli...@suse.cz> PR sanitizer/85081 * gimplify.c (asan_poison_variable): Don't do the check for gimplify_omp_ctxp here. (gimplify_decl_expr): Do it here. (gimplify_target_expr): Likewise. 2018-04-24 Martin Liska <mli...@suse.cz> Backport from mainline 2018-03-28 Jakub Jelinek <ja...@redhat.com> Martin Liska <mli...@suse.cz> PR sanitizer/85081 * g++.dg/asan/pr85081.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/asan/pr85081.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/gimplify.c branches/gcc-7-branch/gcc/testsuite/ChangeLog