http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54552
--- Comment #8 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2012-09-20 20:50:27 UTC --- Author: jsm28 Date: Thu Sep 20 20:50:17 2012 New Revision: 191591 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191591 Log: PR c/54552 * c-typeck.c (c_cast_expr): When casting to a type requiring C_MAYBE_CONST_EXPR to be created, pass the inner expression to c_fully_fold first. testsuite: * gcc.c-torture/compile/pr54552-1.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54552-1.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/c-typeck.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog