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/33284] New: ENTRY and INTRINSIC with same name


I think the following is invalid, but not rejected:

SUBROUTINE a
 intrinsic  cos
entry cos(x)
 real x
 x = 0
end subroutine
end

NAG f95 shows:
Error: a.f90, line 5: Multiply defined symbol COS
Ifort shows:
fortcom: Error: a.f90, line 2: Conflicting attributes or multiple declaration
of name.   [COS]


-- 
           Summary: ENTRY and INTRINSIC with same name
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          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=33284


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