https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86406
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jul 10 08:15:15 2018 New Revision: 262537 URL: https://gcc.gnu.org/viewcvs?rev=262537&root=gcc&view=rev Log: PR sanitizer/86406 * cp-gimplify.c (cp_maybe_instrument_return): Skip trailing DEBUG_BEGIN_STMTs. * g++.dg/ubsan/pr86406.C: New test. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/ubsan/pr86406.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/cp-gimplify.c branches/gcc-8-branch/gcc/testsuite/ChangeLog