This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: rfc: multiple decls for functions
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 19 Dec 2008 23:23:15 +0100
- Subject: Re: rfc: multiple decls for functions
- References: <20081219220740.425633BABA@mailhost.lps.ens.fr>
On Friday 19 December 2008 23:07:40 you wrote:
> I think this issue has already been discussed in the past although
> I don't know how to find the thread. I think there was a bug in gfortran
> that has been fixed.
The test was done with r142828, that's from last night.
Try reversing the order of F and G in the module, G first, and get:
$> gfortran-svn -g -Wall call4.f90
/tmp/ccI92EPs.o: In function `MAIN__':
/home/daniel/pr/call4.f90:15: undefined reference to `__m_MOD_g'
/home/daniel/pr/call4.f90:17: undefined reference to `__m_MOD_g'
collect2: ld returned 1 exit status