public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/38829] New: Bogus BIND(C) error message @ 2009-01-13 18:06 burnus at gcc dot gnu dot org 2009-03-29 8:42 ` [Bug fortran/38829] " fxcoudert at gcc dot gnu dot org 0 siblings, 1 reply; 4+ messages in thread From: burnus at gcc dot gnu dot org @ 2009-01-13 18:06 UTC (permalink / raw) To: gcc-bugs Compiling the following program gives the error: Error: Type 'y_c' at (1) is a parameter to the BIND(C) procedure 'wrapper' but is not C interoperable because derived type 'ty_c' is not C interoperable It works if one moves the TYPE declaration up. It also works with the SUBROUTINE is not BIND(C). TODO: - Move check from decl.c to resolve.c - Change "parameter" to (dummy/formal) "argument" as otherwise it can be confused with the PARAMETER attribute. Found at: http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/5392e4c270d4f3c7 Where it was reported by Steven Correll. MODULE mExample CONTAINS SUBROUTINE wrapper(y_c) bind(c) USE iso_c_binding type, bind(c) :: ty_c type(c_ptr) :: y_cptr Integer(c_int) ny end type type(ty_c) :: y_c END SUBROUTINE END MODULE -- Summary: Bogus BIND(C) error message Product: gcc Version: 4.4.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=38829 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/38829] Bogus BIND(C) error message 2009-01-13 18:06 [Bug fortran/38829] New: Bogus BIND(C) error message burnus at gcc dot gnu dot org @ 2009-03-29 8:42 ` fxcoudert at gcc dot gnu dot org 0 siblings, 0 replies; 4+ messages in thread From: fxcoudert at gcc dot gnu dot org @ 2009-03-29 8:42 UTC (permalink / raw) To: gcc-bugs -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-03-29 08:42:45 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38829 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <bug-38829-4@http.gcc.gnu.org/bugzilla/>]
* [Bug fortran/38829] Bogus BIND(C) error message [not found] <bug-38829-4@http.gcc.gnu.org/bugzilla/> @ 2014-06-08 15:26 ` fxcoudert at gcc dot gnu.org 2014-06-08 15:29 ` fxcoudert at gcc dot gnu.org 1 sibling, 0 replies; 4+ messages in thread From: fxcoudert at gcc dot gnu.org @ 2014-06-08 15:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38829 Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fxcoudert at gcc dot gnu.org Resolution|--- |FIXED --- Comment #1 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- This was fixed in gfortran 4.6 and later. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/38829] Bogus BIND(C) error message [not found] <bug-38829-4@http.gcc.gnu.org/bugzilla/> 2014-06-08 15:26 ` fxcoudert at gcc dot gnu.org @ 2014-06-08 15:29 ` fxcoudert at gcc dot gnu.org 1 sibling, 0 replies; 4+ messages in thread From: fxcoudert at gcc dot gnu.org @ 2014-06-08 15:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38829 --- Comment #2 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- Author: fxcoudert Date: Sun Jun 8 15:28:59 2014 New Revision: 211354 URL: http://gcc.gnu.org/viewcvs?rev=211354&root=gcc&view=rev Log: PR fortran/38829 * gfortran.dg/bind_c_usage_29.f90: New file. Added: trunk/gcc/testsuite/gfortran.dg/bind_c_usage_29.f90 Modified: trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-08 15:29 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-01-13 18:06 [Bug fortran/38829] New: Bogus BIND(C) error message burnus at gcc dot gnu dot org 2009-03-29 8:42 ` [Bug fortran/38829] " fxcoudert at gcc dot gnu dot org [not found] <bug-38829-4@http.gcc.gnu.org/bugzilla/> 2014-06-08 15:26 ` fxcoudert at gcc dot gnu.org 2014-06-08 15:29 ` fxcoudert 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).