[Bug middle-end/17657] [4.0 Regression] ICE in expand_case

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 4 04:07:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-04 04:07 -------
This was caused by:
        PR c++/16254
        * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
        * tree.c, tree.h (has_cleanups): Remove.
        cp/
        * semantics.c (maybe_cleanup_point_expr): Don't call fold.
        * typeck.c (condition_conversion): Likewise.
Because we don't unwrap the cleanup_point_expr from the cond of the switch statement, so we don't 
remove the extra cast.  Which causes us not to add the case 255.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list