For following program a warning should be printed. NAG f95 prints:
Warning: yy.f90, line 9: Type declaration for generic intrinsic LEN ignored

If one changes "real :: len" into "integer :: len", NAG f95 shows:
Warning: yy.f90, line 9: Intrinsic function LEN explicitly typed

I think it makes sense to have the first warning always shown. For the second
one, maybe only with -W* ?

PROGRAM VAL
implicit none
integer :: i
real :: len
intrinsic :: len
i = len(" ")
END


-- 
           Summary: Explicit-typing of intrinsic functions: print warning
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to