PR c/53148
commit7c2df6db9d123ffca895e8025864938799786aee
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 May 2012 14:42:26 +0000 (21 14:42 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 May 2012 14:42:26 +0000 (21 14:42 +0000)
tree746a126e6805e769beb0a23355c6aa9772f179b2
parente694f1e75881d72f4b0968549d8a2e21e766d8e9
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187718 138bc75d-0d04-0410-961f-82ee72b054a4
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]