re PR c/48685 (ICE in gimplify_expr, at gimplify.c:7034)
authorJakub Jelinek <jakub@redhat.com>
Sat, 23 Apr 2011 10:18:03 +0000 (12:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 23 Apr 2011 10:18:03 +0000 (12:18 +0200)
commit16997bc01128f46cee9450237cd5e3e8fb3b12ad
tree0bd4265ebfbee024be2b7dafe59a6165336d35a4
parentff9419990b8556891542d01696a2ab5fb6e55379
re PR c/48685 (ICE in gimplify_expr, at gimplify.c:7034)

PR c/48685
* fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
to VOID_TYPE even around MODIFY_EXPR.

* gcc.dg/pr48685.c: New test.

From-SVN: r172895
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr48685.c [new file with mode: 0644]