re PR middle-end/83415 (ICE during gimplification of assignment to read-only vector)
authorRichard Biener <rguenther@suse.de>
Thu, 14 Dec 2017 11:13:34 +0000 (11:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 14 Dec 2017 11:13:34 +0000 (11:13 +0000)
commitb72805798ac456709eef4a761b84dd1c4a5780e6
tree0385d273d5c80cd5de5908157ae5be03dadb833e
parente729c8e003707934687e0da85e4b151a553a28d9
re PR middle-end/83415 (ICE during gimplification of assignment to read-only vector)

2017-12-14  Richard Biener  <rguenther@suse.de>

PR c/83415
c/
* c-fold.c (c_fully_fold_internal): Treat VIEW_CONVERT_EXPR
like REALPART_EXPR for the behavior of whether its operand
is an lvalue.

* gcc.dg/pr83415.c: New testcase.

From-SVN: r255629
gcc/c/ChangeLog
gcc/c/c-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83415.c [new file with mode: 0644]