This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32159] New: Explicit-typing of intrinsic functions: print warning
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2007 16:49:48 -0000
- Subject: [Bug fortran/32159] New: Explicit-typing of intrinsic functions: print warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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