[gfortran, fix PR 25097] Additional constraints on FORALL headers
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Thu Oct 4 19:57:00 GMT 2007
Hi,
we hadn't yet implemented the following constraint on FORALL headers:
"A subscript or stride in a forall-triplet-spec shall not contain a
reference to any index-name in the forall-triplet-spec-list in which it
appears." This patch fixes this, using the pre-existing
gfc_find_forall_index for the purpose. This meant moving it to the
front of the file, and calling it in a trivial fashion (which is
wasteful, but I can't imagine this ever becoming a performance
bottleneck). I promise to remove the "gfc_" prefix, I only realized its
presence after I had cut the diff.
Built and tested on i386-darwin.
Cheers,
- Tobi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr25097.diff.txt
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071004/8cfda9a9/attachment.txt>
More information about the Fortran
mailing list