This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]