public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/44614] [OOP] Wrongly importing a symbol into an interface without IMPORT
Date: Tue, 22 Jun 2010 21:01:00 -0000	[thread overview]
Message-ID: <20100622210141.4099.qmail@sourceware.org> (raw)
In-Reply-To: <bug-44614-13404@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from burnus at gcc dot gnu dot org  2010-06-22 21:01 -------
Simple patch. Janus, if you have time, you can create a full patch out of it.

Index: decl.c
===================================================================
--- decl.c      (revision 161227)
+++ decl.c      (working copy)
@@ -1764,7 +1764,7 @@ variable_decl (int elem)
      specified in the procedure definition, except that the interface
      may specify a procedure that is not pure if the procedure is
      defined to be pure(12.3.2).  */
-  if (current_ts.type == BT_DERIVED
+  if ((current_ts.type == BT_DERIVED || current_ts.type == BT_CLASS)
       && gfc_current_ns->proc_name
       && gfc_current_ns->proc_name->attr.if_source == IFSRC_IFBODY
       && current_ts.u.derived->ns != gfc_current_ns)


-- 


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


  parent reply	other threads:[~2010-06-22 21:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-21 16:39 [Bug fortran/44614] New: " burnus at gcc dot gnu dot org
2010-06-21 16:44 ` [Bug fortran/44614] " burnus at gcc dot gnu dot org
2010-06-21 18:01 ` janus at gcc dot gnu dot org
2010-06-22 21:01 ` burnus at gcc dot gnu dot org [this message]
2010-06-24  7:51 ` burnus at gcc dot gnu dot org
2010-06-24  8:01 ` burnus 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=20100622210141.4099.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).