[4.1.2] star, column and "Error: The upper bound in the last dimension..."

Steve Kargl sgk@troutmask.apl.washington.edu
Wed May 9 16:39:00 GMT 2007


On Wed, May 09, 2007 at 06:10:13PM +0200, EatDirt wrote:
> 
> program starcolumn
>   implicit none
> 
>   type ptarr
>      real, pointer :: pt => null()
>   end type ptarr
> 
>   type(ptarr), dimension(2) :: myArr
> 
>   call my_routine(myArr)
> 
> contains
> 
>   subroutine my_routine(dummyArr)
>     implicit none
>     type(ptarr), dimension(*) :: dummyArr
> 
>     dummyArr(1)%pt => dummyArr(2)%pt
> 
>   end subroutine my_routine
> 
> end program starcolumn
> 

Thanks for the bug report.  The above code
compiles with both 4.2 and trunk (aka 4.3)
compilers.  You may have a better gfortran
experience if you can upgrade to the
soon-to-be-released 4.2 or the 4.3 gfortran
availiable from the gfortran wiki.

-- 
Steve



More information about the Fortran mailing list