http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58310

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
As James had already pointed out - and as Richard Maine confirmed in a follow
up, the code violates the following constraint of Fortran 2003:

"C614 (R612)   There shall not be more than one part-ref with nonzero rank. A
part-name to the right of a part-ref with nonzero rank shall not have the
ALLOCATABLE or POINTER attribute."

However, gfortran does not diagnose it. (Nor do PGI, crayftn or ifort; I cannot
test NAG f95 at the moment.) The other mentioned compiler handle it - probably
due to avoidance of copy-in/out. See also follow up in thread and the old
posting, linked in the original reporter's email.

Reply via email to