[Bug fortran/31560] Array size declaration depended on order of declaration of variable containing size
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 13 10:06:00 GMT 2007
------- Comment #1 from burnus at gcc dot gnu dot org 2007-04-13 11:05 -------
Could you post a complete example? I have problems to create one with
type (ped_data) :: dataset
integer, dimension(dataset%maxsiz) :: nobs
as parameter is not allowed in a type specification and using a simple
type ped_data
integer :: maxsiz = 5
end type ped_data
does also not work:
integer, dimension(dataset%maxsiz) :: nobs
1
Error: Variable 'dataset' cannot appear in the expression at (1)
or in words of NAG f95:
DATASET is not permitted in a specification expression
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31560
More information about the Gcc-bugs
mailing list