This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32580] iso_c_binding c_f_procpointer / procedure pointers



------- Comment #3 from burnus at gcc dot gnu dot org  2007-07-04 18:29 -------
Clean up from my Bind(C) notes: The following should give an error such as:
Error: 'fptr' argument of 'c_f_procpointer' intrinsic at (1) must be a
PROCEDURE POINTER


  use iso_c_binding
  type(c_funptr) :: cfunptr
  real, pointer :: myFunc
  call c_f_procpointer(cfunptr, myFunc)
end


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
            Summary|iso_c_binding               |iso_c_binding
                   |c_f_procpointer             |c_f_procpointer / procedure
                   |                            |pointers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]