This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] Allow assumed-shape arrays with BIND(C) for TS29113


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]