ISO C Binding has been committed.
Christopher D. Rickett
crickett@lanl.gov
Mon Jul 2 17:17:00 GMT 2007
thanks for the report. this is partly because c_f_procpointer was not
finished since there weren't procedure pointers yet. however, it is a bug
in that c_f_procpointer shouldn't be dependent on c_ptr; it needs
c_funptr.
i'll checkout a new copy of trunk and get this fixed.
Chris
On Mon, 2 Jul 2007, Steve Kargl wrote:
> On Mon, Jul 02, 2007 at 10:57:48AM -0600, Christopher D. Rickett wrote:
>> i would also like to say thanks to all those who've helped me get this
>> patch finished by helping with testing, cleanup, debugging, etc.
>>
>> Chris
>>
>
> You have your first bug report. :-)
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32579
>
> It seems kind of odd to me that someone would
> use only C_F_PROCPOINTER in a module when its
> first argument is of type C_PTR. But, I checked Section
> 15 and could not find anything that says that C_PTR
> is a constraint on C_F_PROCPOINTER.
>
> MODULE X
> USE ISO_C_BINDING, ONLY : C_F_PROCPOINTER
> END MODULE X
>
> troutmask:kargl[207] ~/../sgk/work/4x/bin/gfortran -c a.f90
> a.f90:2.43:
>
> USE ISO_C_BINDING, ONLY : C_F_PROCPOINTER
> 1
> Error: Type 'C_PTR' required for ISO_C_BINDING function at (1)
> a.f90:2.43:
>
> USE ISO_C_BINDING, ONLY : C_F_PROCPOINTER
> 1
> Error: The derived type 'cptr' at (1) is of type 'c_ptr', which has not been defined
>
>
> --
> Steve
>
More information about the Fortran
mailing list