https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61765

            Bug ID: 61765
           Summary: Rejects valid BIND(C) ENTRY
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fxcoudert at gcc dot gnu.org

gfortran 4.9 and 4.10 reject the code below with:

   subroutine sub(x)
     integer, intent(in) :: x
     entry sub_c(x) bind(c)
   end subroutine sub

a.f90:3.16-16:

     entry sub_c(x) bind(c)
                12
Error: Procedure sub_c with binding label sub_c at (1) uses the same global
identifier as entity at (2)


As far as I can tell, this code is standard-conforming (related to non-legal
code from PR 35031). It should be accepted.

Reply via email to