This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]