re PR c/53418 (ICE at gimplify.c:7773)
authorJoseph Myers <joseph@codesourcery.com>
Mon, 21 May 2012 14:42:26 +0000 (15:42 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 21 May 2012 14:42:26 +0000 (15:42 +0100)
commit01c7ccbb81d2ee750e30cc8bf10deb9ed07e7bf0
tree746a126e6805e769beb0a23355c6aa9772f179b2
parent7772bae06caa4eb496d417efe23e9bb33693dc3c
re PR c/53418 (ICE at gimplify.c:7773)

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

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

From-SVN: r187718
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]