re PR sanitizer/86406 ([UBSAN] -fcompare-debug failure with -fsanitize=undefined)
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Jul 2018 08:04:14 +0000 (10:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Jul 2018 08:04:14 +0000 (10:04 +0200)
commitf1bc6caec5fdc1affd2047d518137f7de32cd5d6
tree904c3855dc1228a36524cd48b32036d50eb601e2
parent100291de48d70d56f8ec31e8ba8d9edd1ee95b45
re PR sanitizer/86406 ([UBSAN] -fcompare-debug failure with -fsanitize=undefined)

PR sanitizer/86406
* cp-gimplify.c (cp_maybe_instrument_return): Skip trailing
DEBUG_BEGIN_STMTs.

* g++.dg/ubsan/pr86406.C: New test.

From-SVN: r262536
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr86406.C [new file with mode: 0644]