This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/55907] [4.6/4.7/4.8 Regression] ICE with -fno-automatic -finit-local-zero


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

--- Comment #4 from janus at gcc dot gnu.org 2013-02-08 22:02:09 UTC ---
The following, which is a partial revert of r183180, fixes the ICE:

Index: gcc/fortran/resolve.c
===================================================================
--- gcc/fortran/resolve.c    (revision 195813)
+++ gcc/fortran/resolve.c    (working copy)
@@ -10981,26 +10981,6 @@ build_default_init_expr (gfc_symbol *sym)
       gfc_free_expr (init_expr);
       init_expr = NULL;
     }
-      if (!init_expr && gfc_option.flag_init_character ==
GFC_INIT_CHARACTER_ON
-      && sym->ts.u.cl->length)
-    {
-      gfc_actual_arglist *arg;
-      init_expr = gfc_get_expr ();
-      init_expr->where = sym->declared_at;
-      init_expr->ts = sym->ts;
-      init_expr->expr_type = EXPR_FUNCTION;
-      init_expr->value.function.isym =
-        gfc_intrinsic_function_by_id (GFC_ISYM_REPEAT);
-      init_expr->value.function.name = "repeat";
-      arg = gfc_get_actual_arglist ();
-      arg->expr = gfc_get_character_expr (sym->ts.kind, &sym->declared_at,
-                          NULL, 1);
-      arg->expr->value.character.string[0]
-        = gfc_option.flag_init_character_value;
-      arg->next = gfc_get_actual_arglist ();
-      arg->next->expr = gfc_copy_expr (sym->ts.u.cl->length);
-      init_expr->value.function.actual = arg;
-    }
       break;

     default:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]