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: "domob at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2008 15:56:03 -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 #4 from domob at gcc dot gnu dot org 2008-09-12 15:56 -------
(In reply to comment #3)
> (In reply to comment #1)
> > Removing the
> >
> > double precision :: fonc
> >
> > from sub makes the program compile as expected (as I guess). I'm not sure if
> > that's a bug or a problem with the original code, but I could imagine that this
> > declaration makes gfortran link to an external fonc without the module
> > interface.
> >
>
> You are right. That was the problem. The shame on me not to have found it ! I
> should have posted this on a discussion forum instead of on bugzilla. Thanks
> again for your help.
You are very welcome, of course! But as I stated, I'm not sure if your code is
still valid Fortran and this a bug. I'm not the right one to judge here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37494