public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/57048] New: [4.9 Regression] Handling of C_PTR and C_FUNPTR leads to reject valid
@ 2013-04-23 13:02 burnus at gcc dot gnu.org
  2013-04-23 13:02 ` [Bug fortran/57048] " burnus at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-04-23 13:02 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 57048
           Summary: [4.9 Regression] Handling of C_PTR and C_FUNPTR leads
                    to reject valid
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


Reported by Angelo Graziosi at
http://gcc.gnu.org/ml/fortran/2013-04/msg00210.html

Using in file1:
  module m
  ...
    type t
      type(c_funptr) :: funptr
    end type

and in file2:
   use iso_c_binding, ONLY: c_funloc
   use m
   type(t) :: x
   ...
   x%funptr = c_funloc(proc)

fails with:
  Error: Can't convert TYPE(c_funptr) to INTEGER(4) at (1)


The problem is that the .mod file only contains:
  win32_types.mod:5 'C_funptr' '__iso_c_binding' '' 1 ((DERIVED UNKNOWN-INTENT
while the symtree is searched for "c_funptr".

Workaround: Editing the .mod file and changing C_funptr to c_funptr.


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

end of thread, other threads:[~2015-06-26 20:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-23 13:02 [Bug fortran/57048] New: [4.9 Regression] Handling of C_PTR and C_FUNPTR leads to reject valid burnus at gcc dot gnu.org
2013-04-23 13:02 ` [Bug fortran/57048] " burnus at gcc dot gnu.org
2013-10-30 11:38 ` rguenth at gcc dot gnu.org
2013-11-23 13:33 ` dominiq at lps dot ens.fr
2014-01-26 17:21 ` mikael at gcc dot gnu.org
2014-01-26 17:23 ` mikael at gcc dot gnu.org
2014-04-22 11:37 ` [Bug fortran/57048] [4.9/4.10 " jakub at gcc dot gnu.org
2014-07-16 13:31 ` jakub at gcc dot gnu.org
2014-10-30 10:42 ` [Bug fortran/57048] [4.9/5 " jakub at gcc dot gnu.org
2015-06-26 20:09 ` [Bug fortran/57048] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:35 ` jakub 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).