This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32157] New: Can a subroutine have the same name as an intrinsic function?
- 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: 30 May 2007 15:07:37 -0000
- Subject: [Bug fortran/32157] New: Can a subroutine have the same name as an intrinsic function?
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When I compile the program listed below I get the message "Error: Global name
'len' at (1) is already being used as a FUNCTION at (2)"
For what it's worth, Compaq, Lahey, and g95 do not consider it an error.
PROGRAM VAL
i = len(" ")
END
SUBROUTINE len(i)
END
--
Summary: Can a subroutine have the same name as an intrinsic
function?
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=32157