[Patch, fortran] was - Re: Possible bug in gfortran: array sections in actual arguments
Mikael Morin
mikael.morin@tele2.fr
Wed Jan 28 20:07:00 GMT 2009
Hi Paul,
thanks for looking into this.
There is still something missing for the case lbound == 1.
Consider the following:
implicit none
call test (1, 3)
call test (2, 3)
call test (2, -1)
call test (1, -1)
contains
subroutine test (a, b)
integer :: a, b
integer :: c(a:b)
print *, ubound(c,1)
end subroutine test
end
The patched output is:
3
3
0
-1
vs unpatched (which is what I expect):
3
3
0
0
I must confess I can't see any way to fix this bug properly :-(.
Cheers
Mikael
More information about the Gcc-patches
mailing list