This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37494] function of a module not recognized by a subroutine in the same module
- From: "Jean-Charles dot Gilbert at inria dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2008 16:21:26 -0000
- Subject: [Bug fortran/37494] function of a module not recognized by a subroutine in the same module
- References: <bug-37494-16702@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from Jean-Charles dot Gilbert at inria dot fr 2008-09-12 16:21 -------
(In reply to comment #5)
> > ... I'm not sure if your code is still valid Fortran and this a bug. I'm not the right one to judge here.
>
> I am not the right one either and I did not find anything in the standard to
> support the following:
>
> It seems that declaring 'fonc' makes it external to the module, while without
> any declaration, 'fonc' is found to be the "internal procedure" defined within
> the module.
>
> Note that g95 behaves as gfortran.
Thank you for the time you spent on the problem. I don't remember having seen
the convention you mention above in any Fortran-95++ documentation. Therefore,
the choice made by Gfortran could deserve a note in the GFortran documentation
(I don't think it is mentioned).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37494