This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR 38324 Wrong array bounds for array implicit sections of derived components
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Cc: mikael dot morin at tele2 dot fr
- Date: Thu, 29 Jan 2009 00:37:11 +0100
- Subject: 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