[Patch, fortran] [13/14] Support coarray subreferences: don't force coarray lower bound to 1.
Mikael Morin
mikael.morin@sfr.fr
Fri Oct 7 14:39:00 GMT 2011
gfc_build_array_type was forcing the lower bound to zero in cases where it was
unspecified (NULL). This is wrong for deferred (allocatable) coarrays at least,
as their cobound is specified at allocation time.
This patch fixes that.
I don't think other cases beyond AS_DEFERRED need fixing, but I wouldn't mind
a confirmation. ;-)
OK?
-------------- next part --------------
2011-10-06 Mikael Morin <mikael.morin@sfr.fr>
PR fortran/50420
* trans-types.c (gfc_build_array_type): Don't force lower bound to one
in the deferred case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr50420-13.diff
Type: text/x-diff
Size: 456 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111007/5c79037d/attachment.bin>
More information about the Fortran
mailing list