This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32699] New: Global name 'len' at (1) is already being used as a FUNCTION at (2)
- From: "michael dot a dot richmond at nasa dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 13:55:34 -0000
- Subject: [Bug fortran/32699] New: Global name 'len' at (1) is already being used as a FUNCTION at (2)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When I compile the program listed below I get the message:
al1.f90:4.17:
SUBROUTINE len(i)
1
al1.f90:2.4:
i = len(" ")
2
Error: Global name 'len' at (1) is already being used as a FUNCTION at (2)
For what it's worth:
1. g95, Compaq, and Lahey Fortran do not consider it an error.
2. Declaring len to be INTRINSIC has no effect.
PROGRAM VAL
i = len(" ")
END
SUBROUTINE len(i)
END
--
Summary: Global name 'len' at (1) is already being used as a
FUNCTION at (2)
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael dot a dot richmond at nasa dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32699