OSDN Git Service

PR c/53418
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 May 2012 16:47:32 +0000 (16:47 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 May 2012 16:47:32 +0000 (16:47 +0000)
commit0b04a977617a8e2344022aea93a683ccd1113e73
tree5c0d394e45bb331cb69939a779014d433a8cff09
parent10073be587a45c11adac98f15f0e75b3e44221e7
PR c/53418
* 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/branches/gcc-4_7-branch@187726 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]