public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "janus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/40743] [4.5 Regression] ICE when compiling iso_varying_string.f95 at revision 149591
Date: Tue, 14 Jul 2009 13:50:00 -0000	[thread overview]
Message-ID: <20090714135010.15171.qmail@sourceware.org> (raw)
In-Reply-To: <bug-40743-12313@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from janus at gcc dot gnu dot org  2009-07-14 13:50 -------
The error goes away with the following patch:

Index: gcc/fortran/resolve.c
===================================================================
--- gcc/fortran/resolve.c       (revision 149623)
+++ gcc/fortran/resolve.c       (working copy)
@@ -9845,20 +9845,6 @@ resolve_symbol (gfc_symbol *sym)
   if (sym->formal_ns && sym->formal_ns != gfc_current_ns)
     gfc_resolve (sym->formal_ns);

-  /* Make sure the formal namespace is present.  */
-  if (sym->formal && !sym->formal_ns)
-    {
-      gfc_formal_arglist *formal = sym->formal;
-      while (formal && !formal->sym)
-       formal = formal->next;
-
-      if (formal)
-       {
-         sym->formal_ns = formal->sym->ns;
-         sym->formal_ns->refs++;
-       }
-    }
-
   /* Check threadprivate restrictions.  */
   if (sym->attr.threadprivate && !sym->attr.save && !sym->ns->save_all
       && (!sym->attr.in_common

However, I don't quite see the connection yet. Also, this will regress e.g. on
proc_ptr_22.f90 (which is the reason why I added this hunk for PR40646).


-- 


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


  parent reply	other threads:[~2009-07-14 13:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-14  8:54 [Bug fortran/40743] New: " dominiq at lps dot ens dot fr
2009-07-14  9:46 ` [Bug fortran/40743] " burnus at gcc dot gnu dot org
2009-07-14  9:47 ` burnus at gcc dot gnu dot org
2009-07-14 10:54 ` dominiq at lps dot ens dot fr
2009-07-14 13:20 ` janus at gcc dot gnu dot org
2009-07-14 13:38 ` janus at gcc dot gnu dot org
2009-07-14 13:50 ` janus at gcc dot gnu dot org [this message]
2009-07-14 16:54 ` janus at gcc dot gnu dot org
2009-07-15  7:29 ` steven at gcc dot gnu dot org
2009-07-15  8:42 ` janus at gcc dot gnu dot org
2009-07-15  8:47 ` janus at gcc dot gnu dot 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=20090714135010.15171.qmail@sourceware.org \
    --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).