public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/55907] [4.6/4.7/4.8 Regression] ICE with -fno-automatic -finit-local-zero
Date: Fri, 08 Feb 2013 22:02:00 -0000	[thread overview]
Message-ID: <bug-55907-4-hi89naDXV5@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55907-4@http.gcc.gnu.org/bugzilla/>


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:


  parent reply	other threads:[~2013-02-08 22:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-08  6:56 [Bug fortran/55907] New: internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1418 garcia.espinosa.jr at gmail dot com
2013-01-25 16:30 ` [Bug fortran/55907] [4.6/4.7/4.8 Regression] ICE with -fno-automatic -finit-local-zero janus at gcc dot gnu.org
2013-01-25 17:13 ` dominiq at lps dot ens.fr
2013-01-25 17:21 ` dominiq at lps dot ens.fr
2013-02-08 15:43 ` rguenth at gcc dot gnu.org
2013-02-08 22:02 ` janus at gcc dot gnu.org [this message]
2013-02-08 22:57 ` janus at gcc dot gnu.org
2013-02-09 15:34 ` janus at gcc dot gnu.org
2013-04-12 15:16 ` [Bug fortran/55907] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
2013-06-16 14:27 ` dominiq at lps dot ens.fr
2014-01-16 20:12 ` law at redhat dot com
2014-02-17 12:47 ` janus at gcc dot gnu.org
2014-02-19  7:39 ` janus at gcc dot gnu.org
2014-02-20  8:01 ` janus at gcc dot gnu.org
2014-02-20  8:02 ` janus at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-55907-4-hi89naDXV5@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).