public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55465] New: Name collision in C binding (calling C from Fortran)
@ 2012-11-25 18:19 fmartinez at gmv dot com
  2012-11-25 18:20 ` [Bug fortran/55465] " fmartinez at gmv dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: fmartinez at gmv dot com @ 2012-11-25 18:19 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55465
           Summary: Name collision in C binding (calling C from Fortran)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fmartinez@gmv.com


The following compile error is generated. Maybe not a bug but is passes through
the Intel compiler and I cannot see the reason why it would not compile.
Essentially I am trying to use the binding to call from Fortran the same C
function in two different ways. The interface sql_set_env_attr has two
implementations, one sql_set_env_attr_int where the parameter value is passed
as c_int and another one sql_set_env_attr_ptr where the parameter value is
passed as c_ptr.
In any case the message is somewhat misleading as it identifies the name of the
binding SQLSetEnvAttr as global body and as interface body.
Compilation diagnostics follow:


m_odbc_if.f90:168.4:

    function sql_set_env_attr_ptr( input_handle, &
    1
m_odbc_if.f90:153.4:

    function sql_set_env_attr_int( input_handle, &
    2
Error: Binding label 'SQLSetEnvAttr' in interface body at (1) collides with the
global entity 'SQLSetEnvAttr' at (2)
make: *** [/home/fmmf/pulsar/Linux/Debug/obj/m_odbc_if.o] Error 1


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

end of thread, other threads:[~2013-05-22  6:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-25 18:19 [Bug fortran/55465] New: Name collision in C binding (calling C from Fortran) fmartinez at gmv dot com
2012-11-25 18:20 ` [Bug fortran/55465] " fmartinez at gmv dot com
2012-11-25 18:21 ` fmartinez at gmv dot com
2012-11-26 16:38 ` janus at gcc dot gnu.org
2012-11-26 17:08 ` janus at gcc dot gnu.org
2012-11-26 17:36 ` fmartinez at gmv dot com
2012-11-26 17:41 ` burnus at gcc dot gnu.org
2012-11-26 19:52 ` juno.krahn at nih dot gov
2012-11-26 19:55 ` juno.krahn at nih dot gov
2012-11-26 20:20 ` anlauf at gmx dot de
2012-11-26 20:25 ` anlauf at gmx dot de
2012-11-26 20:58 ` anlauf at gmx dot de
2012-11-27  9:49 ` fmartinez at gmv dot com
2012-11-30 17:21 ` juno.krahn at nih dot gov
2013-05-20 20:14 ` burnus at gcc dot gnu.org
2013-05-20 20:18 ` burnus at gcc dot gnu.org
2013-05-22  6:39 ` burnus 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).