https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80168
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri May 5 21:45:42 2017 New Revision: 247691 URL: https://gcc.gnu.org/viewcvs?rev=247691&root=gcc&view=rev Log: Backported from mainline 2017-03-27 Jakub Jelinek <ja...@redhat.com> PR sanitizer/80168 * asan.c (instrument_derefs): Copy over last operand from original COMPONENT_REF to the new COMPONENT_REF with DECL_BIT_FIELD_REPRESENTATIVE. * ubsan.c (instrument_object_size): Likewise. * gcc.dg/asan/pr80168.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/asan/pr80168.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/asan.c branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/ubsan.c