This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] Add is_coarray() function, use it
- From: Tobias Burnus <burnus at net-b dot de>
- To: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Mon, 18 Jul 2011 22:25:49 +0200
- Subject: Re: [Patch, Fortran] Add is_coarray() function, use it
- References: <4E248B74.1000308@net-b.de>
Tobias Burnus wrote:
I would be happy if someone could carefully read the function in
expr.c - and confirm that the second test case ("dg-error" line) is
indeed invalid. I think it is invalid because one has an array element
of a coarray, which is a coarray but which is not simply contiguous.
Thus, if possible cross check that it is indeed not simply contiguous.
Seemingly J3 concurs that the current wording does not allow it. Whether
it should allow it or not is less clear, cf. PR 45859. (I think it
should be made valid.)
Tobias