This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31560] Array size declaration depended on order of declaration of variable containing size
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Apr 2007 10:05:57 -0000
- Subject: [Bug fortran/31560] Array size declaration depended on order of declaration of variable containing size
- References: <bug-31560-14401@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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