(see also: http://gcc.gnu.org/ml/fortran/2009-05/msg00068.html)

$> 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


The same warnings are given if the arguments of ABS/MAX are of default-real
kind, so this not related to implicit typing.


-- 
           Summary: spurious warning with INTRINSIC statement
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dfranke at gcc dot gnu dot org


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

Reply via email to