This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] PR 38324 Wrong array bounds for array implicit sections of derived components


Mikael,

The patch fixes half of the issues I reported. It works for ik=4, but it 
fails for the following test (ik=8):

integer, parameter :: ik=8
type :: struct
   integer(4), allocatable :: ib(:)
end type struct
integer, parameter :: from=-1, to=2
integer(ik), allocatable :: ia(:)
type(struct) :: x
allocate(ia(from:to))
x=struct(ia)
print *, 'bounds, full array           ', lbound(x%ib), ubound(x%ib)
deallocate(ia)
end

corresponding to

with ik = 8:
...
 bounds, full array                      1           4    <--- should not it be -1 2 as for ik = 4?

Otherwise I'll do a full regtest on i686-apple-darwin9 this night.

Thanks for the patch

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]