public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label
@ 2008-02-11 8:55 burnus at gcc dot gnu dot org
2008-02-12 20:06 ` [Bug fortran/35161] " dfranke at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-02-11 8:55 UTC (permalink / raw)
To: gcc-bugs
I think it is formally valid to have multiple times the same C binding label
(at least for procedures). At least I cannot find anything in the standard
which says otherwise.
Currently, both gfortran and NAG f95 reject the following program while g95 and
ifort accept it.
See also question posted at:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/b1e8c8d0af9d16e8/
(when writing this, the question was not yet answered)
NAG f95:
Error: aaa.f90: Duplicate binding label 'xxx' for external procedure XXX_1 and
external procedure XXX_2
gfortran:
Error: Binding label 'xxx' in interface body at (1) collides with the global
entity 'xxx' at (2)
interface xxx
integer function xxx_1( y ) bind( c, name = "xxx" )
use iso_c_binding
real(c_float), intent(inout) :: y
end function
integer function xxx_2( y ) bind( c, name = "xxx" )
use iso_c_binding
real(c_float), intent(inout), dimension(*) :: y
end function
end interface
end
--
Summary: Bind(C): Procedures with different interface and same C
binding label
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
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=35161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/35161] Bind(C): Procedures with different interface and same C binding label
2008-02-11 8:55 [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label burnus at gcc dot gnu dot org
@ 2008-02-12 20:06 ` dfranke at gcc dot gnu dot org
2009-01-03 23:00 ` dfranke at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-02-12 20:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dfranke at gcc dot gnu dot org 2008-02-12 20:05 -------
*** Bug 35172 has been marked as a duplicate of this bug. ***
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |francois dot jacq at irsn
| |dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/35161] Bind(C): Procedures with different interface and same C binding label
2008-02-11 8:55 [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label burnus at gcc dot gnu dot org
2008-02-12 20:06 ` [Bug fortran/35161] " dfranke at gcc dot gnu dot org
@ 2009-01-03 23:00 ` dfranke at gcc dot gnu dot org
2009-01-04 0:49 ` dfranke at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-01-03 23:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dfranke at gcc dot gnu dot org 2009-01-03 23:00 -------
(In reply to comment #0)
> See also question posted at:
> http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/b1e8c8d0af9d16e8/
> (when writing this, the question was not yet answered)
Conclusion at c.l.f:
"the standard does not require the compiler to issue a message
about names associated to BIND(C,name=...). However I like to see
gfortran reporting that two C names coincide."
Confirmed.
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dfranke at gcc dot gnu dot
| |org
OtherBugsDependingO| |32630
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-01-03 23:00:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/35161] Bind(C): Procedures with different interface and same C binding label
2008-02-11 8:55 [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label burnus at gcc dot gnu dot org
2008-02-12 20:06 ` [Bug fortran/35161] " dfranke at gcc dot gnu dot org
2009-01-03 23:00 ` dfranke at gcc dot gnu dot org
@ 2009-01-04 0:49 ` dfranke at gcc dot gnu dot org
2009-03-29 8:02 ` [Bug fortran/35161] Add warning about procedures with same C binding label and different interface fxcoudert at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-01-04 0:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dfranke at gcc dot gnu dot org 2009-01-04 00:48 -------
See also: PR38386.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/35161] Add warning about procedures with same C binding label and different interface
2008-02-11 8:55 [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-01-04 0:49 ` dfranke at gcc dot gnu dot org
@ 2009-03-29 8:02 ` fxcoudert at gcc dot gnu dot org
2010-05-09 13:15 ` dfranke at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-03-29 8:02 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Keywords| |diagnostic
Summary|Bind(C): Procedures with |Add warning about procedures
|different interface and same|with same C binding label
|C binding label |and different interface
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/35161] Add warning about procedures with same C binding label and different interface
2008-02-11 8:55 [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-03-29 8:02 ` [Bug fortran/35161] Add warning about procedures with same C binding label and different interface fxcoudert at gcc dot gnu dot org
@ 2010-05-09 13:15 ` dfranke at gcc dot gnu dot org
2010-05-09 14:08 ` dfranke at gcc dot gnu dot org
2010-05-09 14:10 ` [Bug fortran/35161] [F2008] allow procedures with same binding label (invalid in F2003) dfranke at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-09 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dfranke at gcc dot gnu dot org 2010-05-09 13:14 -------
*** Bug 41704 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/35161] Add warning about procedures with same C binding label and different interface
2008-02-11 8:55 [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2010-05-09 13:15 ` dfranke at gcc dot gnu dot org
@ 2010-05-09 14:08 ` dfranke at gcc dot gnu dot org
2010-05-09 14:10 ` [Bug fortran/35161] [F2008] allow procedures with same binding label (invalid in F2003) dfranke at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-09 14:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dfranke at gcc dot gnu dot org 2010-05-09 14:08 -------
*** Bug 38386 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/35161] [F2008] allow procedures with same binding label (invalid in F2003)
2008-02-11 8:55 [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label burnus at gcc dot gnu dot org
` (5 preceding siblings ...)
2010-05-09 14:08 ` dfranke at gcc dot gnu dot org
@ 2010-05-09 14:10 ` dfranke at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-09 14:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dfranke at gcc dot gnu dot org 2010-05-09 14:10 -------
Adjusted summary to match information given in dupes.
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |39627
nThis| |
Summary|Add warning about procedures|[F2008] allow procedures
|with same C binding label |with same binding label
|and different interface |(invalid in F2003)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35161
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-05-09 14:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-11 8:55 [Bug fortran/35161] New: Bind(C): Procedures with different interface and same C binding label burnus at gcc dot gnu dot org
2008-02-12 20:06 ` [Bug fortran/35161] " dfranke at gcc dot gnu dot org
2009-01-03 23:00 ` dfranke at gcc dot gnu dot org
2009-01-04 0:49 ` dfranke at gcc dot gnu dot org
2009-03-29 8:02 ` [Bug fortran/35161] Add warning about procedures with same C binding label and different interface fxcoudert at gcc dot gnu dot org
2010-05-09 13:15 ` dfranke at gcc dot gnu dot org
2010-05-09 14:08 ` dfranke at gcc dot gnu dot org
2010-05-09 14:10 ` [Bug fortran/35161] [F2008] allow procedures with same binding label (invalid in F2003) 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).