https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88426
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 8 10:17:32 2019 New Revision: 267703 URL: https://gcc.gnu.org/viewcvs?rev=267703&root=gcc&view=rev Log: Backported from mainline 2018-12-11 Jakub Jelinek <ja...@redhat.com> PR sanitizer/88426 * c-convert.c (convert): Call c_fully_fold before calling ubsan_instrument_float_cast. * c-c++-common/ubsan/float-cast-overflow-11.c: New test. Added: branches/gcc-8-branch/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-11.c Modified: branches/gcc-8-branch/gcc/c/ChangeLog branches/gcc-8-branch/gcc/c/c-convert.c branches/gcc-8-branch/gcc/testsuite/ChangeLog