This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/86406] [8/9 Regression][UBSAN] -fcompare-debug failure with -fsanitize=undefined
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jul 2018 08:15:53 +0000
- Subject: [Bug sanitizer/86406] [8/9 Regression][UBSAN] -fcompare-debug failure with -fsanitize=undefined
- Auto-submitted: auto-generated
- References: <bug-86406-4@http.gcc.gnu.org/bugzilla/>
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