https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80097
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri May 5 21:42:05 2017 New Revision: 247687 URL: https://gcc.gnu.org/viewcvs?rev=247687&root=gcc&view=rev Log: Backported from mainline 2017-03-21 Jakub Jelinek <ja...@redhat.com> PR c/80097 * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around optional COMPOUND_EXPR with ubsan instrumentation. * gcc.dg/ubsan/pr80097.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/ubsan/pr80097.c Modified: branches/gcc-6-branch/gcc/c/ChangeLog branches/gcc-6-branch/gcc/c/c-typeck.c branches/gcc-6-branch/gcc/testsuite/ChangeLog