public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "brtnfld at hdfgroup dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45211] New: C interoperable error when compiling BIND(C) function in a module. Date: Fri, 06 Aug 2010 17:13:00 -0000 [thread overview] Message-ID: <bug-45211-16432@http.gcc.gnu.org/bugzilla/> (raw) gfortran (all versions 4.2-4.5) reports the error when trying to compile code below: Error: Type 'link_info' at (1) is a parameter to the BIND(C) procedure 'liter_cb' but is not C interoperable because derived type 'info_t' is not C interoperable when I remove the module and compile just the function it compiles fine. info_t is interoperable with C MODULE liter_cb_mod USE ISO_C_BINDING CONTAINS FUNCTION liter_cb(link_info) bind(C) USE ISO_C_BINDING IMPLICIT NONE INTEGER(c_int) liter_cb TYPE, bind(C) :: info_t INTEGER(c_int) :: type END TYPE info_t TYPE(info_t) :: link_info liter_cb = 0 END FUNCTION liter_cb END MODULE liter_cb_mod -- Summary: C interoperable error when compiling BIND(C) function in a module. Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: critical Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: brtnfld at hdfgroup dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45211
next reply other threads:[~2010-08-06 17:13 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-08-06 17:13 brtnfld at hdfgroup dot org [this message] 2010-08-06 17:26 ` [Bug fortran/45211] " dominiq at lps dot ens dot fr 2010-08-09 15:03 ` brtnfld at hdfgroup dot org 2010-08-14 16:25 ` burnus at gcc dot gnu dot org 2010-08-15 16:21 ` burnus at gcc dot gnu dot org 2010-08-15 16:23 ` burnus at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-45211-16432@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).