------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-18 14:50 ------- Hmm, this is fixed now via the following two patches: 2005-02-18 Andrew Pinski <[EMAIL PROTECTED]>
PR middle-end/20030 * fold-const.c (fold_indirect_ref_1): Use the correct index for zero access, the lower bound of the array type if it exists. 2005-02-13 Jason Merrill <[EMAIL PROTECTED]> PR c++/16405 * fold-const.c (fold_indirect_ref_1): Split out from... (build_fold_indirect_ref): Here. (fold_indirect_ref): New fn. * tree.h: Declare it. * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref. (gimplify_modify_expr_rhs): Likewise. (gimplify_expr): Likewise. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|fortran |tree-optimization Keywords| |ice-on-valid-code Resolution| |FIXED Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20052