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/20363] interface body has incorrect scope


------- Additional Comments From paulthomas2 at wanadoo dot fr  2005-07-27 16:21 -------
> > interfaces.  This brings me to a question: what is a "named interface"?  I

This is a nameless interface, isn't it?

module snafu
  interface
    subroutine really_snafu (foo)        
      integer, intent (inout)  :: foo
    end subroutine really_snafu
  end interface
end module snafu

This compiles correctly with gfc.  A named interface, therefore, is the same
thing but with a name.  I don't know what this does for us.  A generic
interface, is a named interface that contains variants for different types.

> 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 revertin

I would go along with that - we will need to remember, though....

> your change if someone finds time to overhaul symbol handling) or overhauling
> symbol handling right away :-(

I am not entirely sure that symbol handling should be overhauled but maybe I
have not understood your reasons for wanting to do that?

Anyway, my invlovement with the library is taking longer than intended; having
taken a foray into the scalarizer etc., in order to do the right thing with
internal units.  As soon as I am done, I will return to these matters.

Cheers

Paul

-- 


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


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