[Patch, Fortran] Fixes for scalar coarrays

Tobias Burnus burnus@net-b.de
Sat May 7 12:47:00 GMT 2011


The interface.c patch is to avoid a strange error ("actual argument must 
be simply contiguous") which is a bit odd if the actual argument is a 
scalar. As the dummy was an array, a rank mismatch would have been the 
proper error. - The patch simply suppresses the error message such that 
the later error check becomes active.

The rest of the patch: For scalar coarray dummy arguments, the cobounds 
were not properly saved - thus calling the one of the coindex intrinsics 
gave an ICE.

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

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coarray-scalar.diff
Type: text/x-patch
Size: 6041 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110507/4603f4d0/attachment.bin>


More information about the Gcc-patches mailing list