re PR sanitizer/80349 (UBSAN: compile time crash with "type mismatch in binary expres...
authorMarek Polacek <polacek@redhat.com>
Thu, 27 Apr 2017 21:12:29 +0000 (21:12 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 27 Apr 2017 21:12:29 +0000 (21:12 +0000)
commit3777eda2eddbc7d5d54bdc0cddaa7f8f44c5ffe9
tree76d8381120643982630eae02550e5044ba926547
parentf49215b10cb70ee28f041c6b5088b55b3f33afb9
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 EQ_EXPR, NE_EXPR>: Convert
arg10 and arg11 to itype.

* c-c++-common/ubsan/pr80349.c: New test.

From-SVN: r247352
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr80349.c [new file with mode: 0644]