[Patch, Fortran] Permit allocatable/pointer attributes with BIND(C)
Tobias Burnus
burnus@net-b.de
Tue Apr 30 15:23:00 GMT 2013
TS29113 permits the allocatable/pointer attribute with BIND(C); this
patch allows it now with -std=f2008ts.
While the TS allows it also for scalars, this patch only permits it for
arrays. The reason is that TS29113 requires the use of the array
descriptor - and adding the support for scalars is something I would
like to defer until the new descriptor is ready. (Similarly for
character(len=:) and character(len=*) dummy arguments with Bind(C),
which also use the array descriptor.)
Build and regtested on x86-84-gnu-linux.
OK for the trunk?
Tobias
PS: Admittedly, this feature is only of limited use on the trunk;
however, for Fortran-dev, it is very useful.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-c-alloc.diff
Type: text/x-patch
Size: 4168 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130430/dff36c06/attachment.bin>
More information about the Gcc-patches
mailing list