https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80067
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue Mar 28 08:16:27 2017 New Revision: 246522 URL: https://gcc.gnu.org/viewcvs?rev=246522&root=gcc&view=rev Log: PR sanitizer/80067 * fold-const.c (fold_comparison): Use protected_set_expr_location instead of SET_EXPR_LOCATION. * c-c++-common/ubsan/shift-10.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/c-c++-common/ubsan/shift-10.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/fold-const.c branches/gcc-6-branch/gcc/testsuite/ChangeLog