[Patch, Fortran] PR45211 - Fix DT BIND(C) check

Tobias Burnus burnus@net-b.de
Sun Aug 15 16:09:00 GMT 2010


  Derived types with BIND(C) are interoperable, but the check failed for 
derived types defined in a module procedure. The reason is that 
verify_c_interop checks for ts->u.derived->ts.is_c_interop which is only 
set after calling verify_bind_c_derived_type. However, 
verify_bind_c_derived_type is called in resolve.c - which is too late 
for the call to verify_c_interop.

Build and regtested on x86-84-linux.
OK for the trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind_c_dt.diff
Type: text/x-patch
Size: 1991 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100815/ceebd8bc/attachment.bin>


More information about the Fortran mailing list