This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r187718 - in /trunk/gcc: ChangeLog c-typeck.c t...
- From: jsm28 at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 21 May 2012 14:42:29 -0000
- Subject: r187718 - in /trunk/gcc: ChangeLog c-typeck.c t...
Author: jsm28
Date: Mon May 21 14:42:26 2012
New Revision: 187718
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187718
Log:
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.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr53418-1.c
trunk/gcc/testsuite/gcc.c-torture/compile/pr53418-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog