[Bug fortran/32157] New: Can a subroutine have the same name as an intrinsic function?
michael dot a dot richmond at nasa dot gov
gcc-bugzilla@gcc.gnu.org
Wed May 30 15:07:00 GMT 2007
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
More information about the Gcc-bugs
mailing list