This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/40041] New: spurious warning with INTRINSIC statement


(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


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