GNU Fortran (GCC) 4.3.0 20070412 (experimental)
Linux 2.4.20-20030701 #2 SMP 

  use ped_class
  type (ped_data) :: dataset
  integer, dimension(dataset%maxsiz) :: nobs

works but

  use ped_class
  integer, dimension(dataset%maxsiz) :: nobs 
  type (ped_data) :: dataset

doesn't.

ped_data is defined in module ped_class and has an integer slot %maxsiz


-- 
           Summary: Array size declaration depended on order of declaration
                    of variable containing size
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: David dot Duffy at qimr dot edu dot au
  GCC host triplet: linux
GCC target triplet: i386


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

Reply via email to