[Bug sanitizer/80403] UBSAN: compile time crash with "type mismatch in binary expression" message in / and % expr

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 13 19:53:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80403

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Apr 13 19:52:58 2017
New Revision: 246917

URL: https://gcc.gnu.org/viewcvs?rev=246917&root=gcc&view=rev
Log:
        PR sanitizer/80403
        * fold-const.c (fold_ternary_loc): Revert
        use op0 instead of fold_convert_loc (loc, type, arg0) part of
        2017-04-12 change.

        * g++.dg/ubsan/pr80403-2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/pr80403-2.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list