re PR sanitizer/63690 (ICE: tree check: expected class 'expression', have 'constant...
authorMarek Polacek <polacek@redhat.com>
Wed, 19 Nov 2014 14:32:02 +0000 (14:32 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 19 Nov 2014 14:32:02 +0000 (14:32 +0000)
commitc71a55f88d2d4fc29f9009aea2d833ac340ea38b
treecb18d477dddc969d4782f2d7ef4c4f046aef8e81
parent3b5b776210dc2819638d48595a0e97578d7adbcb
re PR sanitizer/63690 (ICE: tree check: expected class 'expression', have 'constant' (string_cst) with -fsanitize=undefined)

PR sanitizer/63690
* ubsan.c (instrument_object_size): Check for MEM_REF.

* gcc.dg/ubsan/pr63690.c: New test.

From-SVN: r217778
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr63690.c [new file with mode: 0644]
gcc/ubsan.c