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

--- Comment #5 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2012-09-15 
00:29:31 UTC ---
Author: jsm28
Date: Sat Sep 15 00:29:28 2012
New Revision: 191337

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191337
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_6-branch/gcc/testsuite/gcc.c-torture/compile/pr54552-1.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/c-typeck.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog

Reply via email to