User account creation filtered due to spam.

Bug 61765 - [5/6/7/8 Regression] [F03] Rejects valid BIND(C) ENTRY
Summary: [5/6/7/8 Regression] [F03] Rejects valid BIND(C) ENTRY
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 5.0
: P4 normal
Target Milestone: 5.5
Assignee: Not yet assigned to anyone
URL:
Keywords: rejects-valid
Depends on:
Blocks: 32630
  Show dependency treegraph
 
Reported: 2014-07-09 22:33 UTC by Francois-Xavier Coudert
Modified: 2016-08-03 11:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2014-07-09 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois-Xavier Coudert 2014-07-09 22:33:52 UTC
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.
Comment 1 Dominique d'Humieres 2014-07-09 22:58:23 UTC
The code is accepted up to r199034 (2013-05-17) and rejected after r199221 (2013-05-22). Likely r199118, r199119, or r199120 (pr 48858).
Comment 2 Dominique d'Humieres 2015-02-16 09:55:06 UTC
> The code is accepted up to r199034 (2013-05-17) and rejected after r199221
> (2013-05-22). Likely r199118, r199119, or r199120 (pr 48858).

It is r199120.
Comment 3 Jakub Jelinek 2015-06-26 19:56:55 UTC
GCC 4.9.3 has been released.
Comment 4 Richard Biener 2016-08-03 11:41:19 UTC
GCC 4.9 branch is being closed