public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41704]  New: Different local names in interfaces for same C-binding name/same procedure
@ 2009-10-14  8:00 burnus at gcc dot gnu dot org
  2010-05-08 10:02 ` [Bug fortran/41704] [F2008?] " dfranke at gcc dot gnu dot org
  2010-05-09 13:15 ` dfranke at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-14  8:00 UTC (permalink / raw)
  To: gcc-bugs

Gfortran rejects the following code with
  Error: Binding label 'foo' in interface body at (1)
         collides with the global entity 'foo' at (2)
However, it seems as if the code could be valid - either in Fortran 2003 or in
Fortran 2008. See thread at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/02a37fa283e0ef25

One could consider sending an interpretation request.


use iso_c_binding
interface
    function foo_1() bind(c, name='foo')
      import
      integer(c_int) :: foo_1
    end function
    function foo_2() bind(c, name='foo')
      import
      integer(c_int) :: foo_2
    end function
  end interface
end


-- 
           Summary: Different local names in interfaces for same C-binding
                    name/same procedure
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          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=41704


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

* [Bug fortran/41704] [F2008?] Different local names in interfaces for same C-binding name/same procedure
  2009-10-14  8:00 [Bug fortran/41704] New: Different local names in interfaces for same C-binding name/same procedure burnus at gcc dot gnu dot org
@ 2010-05-08 10:02 ` dfranke at gcc dot gnu dot org
  2010-05-09 13:15 ` dfranke at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-08 10:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dfranke at gcc dot gnu dot org  2010-05-08 10:02 -------
The thread doesn't come to a conclusion. As I read it, it's invalid in F2003,
but maybe valid in F2008?! Thus removing the rejects-valid keyword for now.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
           Keywords|rejects-valid               |
            Summary|Different local names in    |[F2008?] Different local
                   |interfaces for same C-      |names in interfaces for same
                   |binding name/same procedure |C-binding name/same
                   |                            |procedure


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41704


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

* [Bug fortran/41704] [F2008?] Different local names in interfaces for same C-binding name/same procedure
  2009-10-14  8:00 [Bug fortran/41704] New: Different local names in interfaces for same C-binding name/same procedure burnus at gcc dot gnu dot org
  2010-05-08 10:02 ` [Bug fortran/41704] [F2008?] " dfranke at gcc dot gnu dot org
@ 2010-05-09 13:15 ` dfranke at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-09 13:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dfranke at gcc dot gnu dot org  2010-05-09 13:14 -------


*** This bug has been marked as a duplicate of 35161 ***


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41704


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

end of thread, other threads:[~2010-05-09 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-14  8:00 [Bug fortran/41704] New: Different local names in interfaces for same C-binding name/same procedure burnus at gcc dot gnu dot org
2010-05-08 10:02 ` [Bug fortran/41704] [F2008?] " dfranke at gcc dot gnu dot org
2010-05-09 13:15 ` dfranke at gcc dot gnu dot 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).