http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41951
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu.org --- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-01-23 10:10:33 UTC --- Another test case, from http://groups.google.com/group/comp.lang.fortran/msg/e6a865eda59e86db?hl=de module mytypes implicit none private public :: mytype, get_i integer, save :: i_priv = 13 type :: mytype integer :: dummy contains procedure, nopass :: i => get_i end type mytype contains pure function get_i () result (i) integer :: i i = i_priv end function get_i end module mytypes program test use mytypes implicit none type(mytype) :: a type(mytype), parameter :: a_const = mytype (0) ! integer, dimension (get_i()) :: x ! #1 ! integer, dimension (a%i()) :: x ! #2 integer, dimension (a_const%i()) :: x ! #3 print *, size (x) end program test