This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: host association question
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: mrestelli at gmail dot com
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 20 Nov 2006 13:31:49 +0100 (CET)
- Subject: Re: host association question
Marco,
With gcc version 4.3.0 20061118, your second test gives:
bad_func_1.f90:9.19:
function internal_f
1
Error: Expected formal argument list in function definition at (1)
bad_func_1.f90:10.22:
real :: internal_f(5)
1
Error: Symbol 'internal_f' at (1) has already been host associated
bad_func_1.f90:13.10:
internal_f = 2
1
Error: Symbol 'internal_f' at (1) has already been host associated
bad_func_1.f90:15.3:
end function internal_f
1
Error: Expecting END PROGRAM statement at (1)
As I said in
http://gcc.gnu.org/ml/fortran/2006-11/msg00529.html
assuming the modified code I posted is standard conforming,
the is a bug in gfortran with the host association: the test
in the above post compiles and gives the expected result
for all the other compilers I have tried on both OSX and
Linux/AMD64.
Cheers
Dominique