This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2007 19:58:51 -0000
- Subject: [Bug fortran/32627] New: [ISO Bind C] Accept c_pointer_* for TYPE
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
From:
http://de.wikibooks.org/w/index.php?title=Fortran:_Fortran_und_C:_Fortran_2003#Datenverbund
/tmp/ccW1yqyk.o: In function `MAIN__':
f.f90:(.text+0x3e): undefined reference to `__iso_c_binding_c_f_pointer_s1'
program main
use iso_c_binding
implicit none
type, bind( c ) :: A
integer( c_int ) :: xc, yc
type( c_ptr ) :: str
end type
type( c_ptr ) :: x
type( A ), pointer :: fptr
character( len=9 ), pointer :: strptr
call c_f_pointer( fptr%str, strptr )
end program main
--
Summary: [ISO Bind C] Accept c_pointer_* for TYPE
Product: gcc
Version: 4.3.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=32627