http://gcc.gnu.org/ml/fortran/2012-05/msg00171.html

On 30.05.2012 13:56, Tobias Burnus wrote:
On 05/30/2012 11:09 AM, Tobias Burnus wrote:
This patch rejects actual arguments to MOVE_ALLOC which are coindexed or have a corank.

Updated version (cf. below). Build and regtested on x86-64-linux.
OK for the trunk?

I asked at J3 and John Reid kindly pointed me to the pending interpretation request F08/0040 at http://j3-fortran.org/doc/year/12/12-006A.txt

According to the IR, coarray arguments are allowed, if the FROM and TO have the same corank. (Hence, Damian's example remains invalid.)

Additionally, MOVE_ALLOC becomes an image control statement as TO might get deallocated. I filled a PR to track the implications for -fcoarray=lib: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53526

Tobias


Reply via email to