https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88215
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 8 09:59:34 2019 New Revision: 267690 URL: https://gcc.gnu.org/viewcvs?rev=267690&root=gcc&view=rev Log: Backported from mainline 2018-11-28 Jakub Jelinek <ja...@redhat.com> PR c++/88215 * c-ubsan.c: Include langhooks.h. (ubsan_instrument_division): Change gcc_assert that main variants of op0 and op1 types are equal to gcc_checking_assert that the main variants are compatible types. * c-c++-common/ubsan/pr88215.c: New test. Added: branches/gcc-8-branch/gcc/testsuite/c-c++-common/ubsan/pr88215.c Modified: branches/gcc-8-branch/gcc/c-family/ChangeLog branches/gcc-8-branch/gcc/c-family/c-ubsan.c branches/gcc-8-branch/gcc/testsuite/ChangeLog