public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "Tobias dot Schlueter at physik dot uni-muenchen dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/20363] interface body has incorrect scope
Date: Wed, 27 Jul 2005 13:24:00 -0000	[thread overview]
Message-ID: <20050727132201.25054.qmail@sourceware.org> (raw)
In-Reply-To: <20050307183348.20363.paulthomas2@wanadoo.fr>


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2005-07-27 13:21 -------
Subject: Re:  interface body has incorrect scope

Quoting erik dot edelmann at iki dot fi <gcc-bugzilla@gcc.gnu.org>:
> I've taken a look at "another compiler" (i.e. g95).  The difference is in
> (gfc|g95)_match_interface().  While we do
>
>     case INTERFACE_GENERIC:
>
>           <...>
>
>           current_interface.sym = gfc_new_block = sym;
>
> g95 does:
>
>     case INTERFACE_GENERIC:
>
>         <...>
>
>         g95_new_block = NULL;
>
> The result of this is that in find_special(), when we get to the point
>
>     if (s->state != COMP_INTERFACE || s->sym == NULL)
>         goto normal;   /* Nameless interface */
>
> (or corresponding point in gfortran source code), g95 will 'goto normal',
> while
> we continue. In other words; g95 treats generic interfaces as nameless
> interfaces.  This brings me to a question: what is a "named interface"?  I
> had
> assumed that it would the same thing as a generic interface, but in g95 code
> it
> is apperantly not.

(I'm at the office so wrapping is weird, my e-mail address is weird and I don't
have the standard nor the source handy)

IIRC in g95 generic interface names are not part of the usual symbol tree, but
instead they're stored completely apart, so that the symbol doesn't get in the
way as it does in our case, and therefore the check in find_special can remain
the same.  Therefore it's unfortunately not clear if the behavior with your
patch is equivalent to g95's.

I couldn't think of anything that breaks with your patch, which leaves us with
either the option of applying your patch (and then having to remember reverting
your change if someone finds time to overhaul symbol handling) or overhauling
symbol handling right away :-(



-- 


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


  parent reply	other threads:[~2005-07-27 13:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-07 18:33 [Bug fortran/20363] New: " paulthomas2 at wanadoo dot fr
2005-03-07 18:40 ` [Bug fortran/20363] " paulthomas2 at wanadoo dot fr
2005-03-12 17:29 ` pinskia at gcc dot gnu dot org
2005-07-10 15:39 ` tobi at gcc dot gnu dot org
2005-07-10 16:58 ` paulthomas2 at wanadoo dot fr
2005-07-11 19:56 ` erik dot edelmann at iki dot fi
2005-07-11 20:02 ` paulthomas2 at wanadoo dot fr
2005-07-11 20:12 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-07-12  7:20 ` paulthomas2 at wanadoo dot fr
2005-07-12 11:50 ` tobi at gcc dot gnu dot org
2005-07-27 13:22 ` erik dot edelmann at iki dot fi
2005-07-27 13:24 ` Tobias dot Schlueter at physik dot uni-muenchen dot de [this message]
2005-07-27 16:28 ` paulthomas2 at wanadoo dot fr
2005-07-28  9:07 ` erik dot edelmann at iki dot fi
2005-07-28 10:55 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-08-25 12:18 ` cvs-commit at gcc dot gnu dot org
2005-08-25 12:27 ` tobi at gcc dot gnu dot org
2005-08-25 12:27 ` tobi at gcc dot gnu dot org
2005-08-25 12:27 ` cvs-commit 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=20050727132201.25054.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).