http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53418

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-20 
14:39:40 UTC ---
Author: rguenth
Date: Wed Jun 20 14:39:36 2012
New Revision: 188837

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188837
Log:
2012-06-20  Richard Guenther  <rguent...@suse.de>

    Backport from mainline
    2012-05-21  Joseph Myers  <jos...@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.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/compile/pr53418-1.c
    branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/compile/pr53418-2.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/c-typeck.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog

Reply via email to