[Patch, Fortran] Allow assumed-shape arrays with BIND(C) for TS29113
Tobias Burnus
burnus@net-b.de
Fri Jul 20 10:10:00 GMT 2012
On 07/20/2012 11:55 AM, Mikael Morin wrote:
> On 18/07/2012 17:17, Tobias Burnus wrote:
>> + either assumed size or explicit shape. Deferred shape is already
>> + covered by the pointer/allocatable attribute. */
> Don't we need to fix the pointer/allocatable diagnostics as well then?
Yes, but that requires additional changes in trans-expr.c, which I
intended to handle later. In particular, for BIND(C) "character(len=*)"
is allowed; it uses the array descriptor but may not be allocatable / a
pointer. And for pointers/allocatables: With BIND(C), scalars are passed
via the array descriptor, without not. As it started to get
complicated, I didn't want to mangle that part with the assumed-rank patch.
But if you prefer, I can now also lump all Bind(C) changes of TS29113
together into a big patch.
Tobias
More information about the Gcc-patches
mailing list