This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32699] New: Global name 'len' at (1) is already being used as a FUNCTION at (2)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]