[Patch, Fortran, 4.6] Coarray 6/n: Add expression support

Tobias Burnus burnus@net-b.de
Wed Mar 31 17:55:00 GMT 2010


On March 20, 2010 18:29, Tobias Burnus wrote:
> here comes the next coarray patch, which finally brings support for
> coarrays in expression.
>   

Attached you find a new version, which corrects some issues.

 * * *

First, I managed to confuse "is" and "has" in "is/has an
allocatable/pointer ultimate component" ...

The "for PURE" reference is wrong, C1283 is somewhat different and
checked for at at different place.

gfc_variable_attr mishandled "allocatable" for coarrays, causing 
"alloc_var(:)[1] = ..." to be rejected.

And I forgot to to do a rank check for actual arguments to allocatable
coarray formal arguments.

 * * *

Hopefully, I have now found most of the bugs ...

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

(I included both an interdiff and the update of the previous patch as it
was not yet reviewed.)

Tobias

PS: By the way, there is a new version of g95, which is said to also
support coarray via threads, cf. http://www.g95.org/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coarray_expr-interdiff.diff
Type: text/x-patch
Size: 10260 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100331/21740b7b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coarray_expr3.diff
Type: text/x-patch
Size: 61421 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100331/21740b7b/attachment-0001.bin>


More information about the Fortran mailing list