[Bug fortran/37494] function of a module not recognized by a subroutine in the same module

dominiq at lps dot ens dot fr gcc-bugzilla@gcc.gnu.org
Fri Sep 12 16:12:00 GMT 2008



------- Comment #5 from dominiq at lps dot ens dot fr  2008-09-12 16:11 -------
> ... 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.


-- 


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



More information about the Gcc-bugs mailing list