[Bug sanitizer/80349] [6 Regression] UBSAN: compile time crash with "type mismatch in binary expression" message
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 25 17:03:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80349
--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Apr 25 17:02:27 2017
New Revision: 247260
URL: https://gcc.gnu.org/viewcvs?rev=247260&root=gcc&view=rev
Log:
PR sanitizer/80349
* fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
first argument to type.
* g++.dg/ubsan/pr80349-2.C: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/ubsan/pr80349-2.C
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/fold-const.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list