]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c/53418 (ICE at gimplify.c:7773)
authorRichard Guenther <rguenther@suse.de>
Wed, 20 Jun 2012 14:39:36 +0000 (14:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Jun 2012 14:39:36 +0000 (14:39 +0000)
commit6bc37cd7e6f91f7a404551c07afb073285e4d237
tree3ebc7d15a33e7a050332078f351e9f993e9ce506
parente17a74dc04882a3420925b02c36f96f20b979603
backport: re PR c/53418 (ICE at gimplify.c:7773)

2012-06-20  Richard Guenther  <rguenther@suse.de>

Backport from mainline
2012-05-21  Joseph Myers  <joseph@codesourcery.com>

PR c/53418
* c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
from folded operands before wrapping another around the
conditional expression.

* gcc.c-torture/compile/pr53418-1.c,
gcc.c-torture/compile/pr53418-2.c: New tests.

From-SVN: r188837
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr53418-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr53418-2.c [new file with mode: 0644]