Re: [Patch, Fortran] PR 18918 - implement coarray's IMAGE_INDEX for nonconstant bounds

2011-04-17 Thread Mikael Morin
On Saturday 16 April 2011 22:25:19 Tobias Burnus wrote: > In simplify.c, currently an error is returned if the cobounds are > exceeded. One should probably downgrade those to warnings. OK with that change. As far as I know, it is (weird but) valid to use the image_index result for something comple

[Patch, Fortran] PR 18918 - implement coarray's IMAGE_INDEX for nonconstant bounds

2011-04-16 Thread Tobias Burnus
The attached patch implements IMAGE_INDEX(COARRAY, SUB) for nonconstant bounds; the patch (and the test case) work both with -fcoarray=single and with -fcoarray=lib (with any number of images - I tried up to 21). Note: If the image index would exceed the number of images, 0 is returned. Additi