[Bug c/48685] [4.5/4.6/4.7 regression] ICE in gimplify_expr, at gimplify.c:7034

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Apr 23 10:19:00 GMT 2011


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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-23 10:18:56 UTC ---
Author: jakub
Date: Sat Apr 23 10:18:54 2011
New Revision: 172896

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172896
Log:
    PR c/48685
    * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
    to VOID_TYPE even around MODIFY_EXPR.

    * gcc.dg/pr48685.c: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr48685.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/fold-const.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list