[Bug fortran/31560] improve error message for using components of later decl. variables in specification expressions

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 20 18:03:00 GMT 2007



------- Comment #8 from fxcoudert at gcc dot gnu dot org  2007-11-20 18:03 -------
Here is a minimal testcase that reproduces the unclear error message:

subroutine prirelval(nobs, dataset)
  type ped_data
    integer :: maxsiz
  end type ped_data

  integer, dimension(dataset%maxsiz) :: nobs
  type (ped_data) :: dataset
end subroutine prirelval


$ gfortran z.f90
z.f90:6.28:

  integer, dimension(dataset%maxsiz) :: nobs
                           1
Error: Expected another dimension in array declaration at (1)


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2007-05-22 18:01:33         |2007-11-20 18:03:32
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31560



More information about the Gcc-bugs mailing list