re PR sanitizer/80349 (UBSAN: compile time crash with "type mismatch in binary expres...
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 Apr 2017 06:12:26 +0000 (08:12 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Apr 2017 06:12:26 +0000 (08:12 +0200)
commitd62e6f1078dd62f6e8937d1f48f1f77f0a78e19e
tree3c5094f94841ffdb7f90d3632cb0157e88a7e98a
parent31d61ac600b2a6e8b80d0e27d11ec8d4720780ea
re PR sanitizer/80349 (UBSAN: compile time crash with "type mismatch in binary expression" message)

PR sanitizer/80349
* fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
first argument to type.

* g++.dg/ubsan/pr80349.C: New test.

From-SVN: r246865
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr80349.C [new file with mode: 0644]