public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61765] New: Rejects valid BIND(C) ENTRY
@ 2014-07-09 22:33 fxcoudert at gcc dot gnu.org
  2014-07-09 22:37 ` [Bug fortran/61765] " fxcoudert at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-07-09 22:33 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-26 20:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09 22:33 [Bug fortran/61765] New: Rejects valid BIND(C) ENTRY fxcoudert at gcc dot gnu.org
2014-07-09 22:37 ` [Bug fortran/61765] " fxcoudert at gcc dot gnu.org
2014-07-09 22:58 ` [Bug fortran/61765] [4.9/4.10 Regression] " dominiq at lps dot ens.fr
2014-11-19 13:27 ` [Bug fortran/61765] [4.9/5 " rguenth at gcc dot gnu.org
2015-02-16  9:55 ` dominiq at lps dot ens.fr
2015-06-26 20:05 ` [Bug fortran/61765] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:34 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).