This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
intrinsic statement
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Tue, 5 May 2009 23:40:14 +0200
- Subject: intrinsic statement
Dear all,
while eliminating warnings from a dated fortran source, I extracted the
example below. I believe the the warnings are incorrect, but I'm not sure?!
$> cat foo.f
INTRINSIC ABS, MAX
a(n) = MAX(ABS(2),ABS(3),n)
END
$> gfortran-svn -Wall -Wextra foo.f
foo.f:1.21:
INTRINSIC ABS, MAX
1
Warning: Type specified for intrinsic function 'abs' at (1) is ignored
foo.f:1.26:
INTRINSIC ABS, MAX
1
Warning: Type specified for intrinsic function 'max' at (1) is ignored
Simply removing the intrinsic statement cures this, of course, but that's not
the point :)
Pointers and comments welcome!
Daniel