------- Comment #2 from pault at gcc dot gnu dot org 2007-11-06 14:13 ------- GNU Fortran (GCC) 4.3.0 20070912 (experimental) Copyright (C) 2007 Free Software Foundation, Inc.
$ cat pr34002.f90 program fred implicit none integer,dimension(3),parameter::MaxJ=2 integer,dimension(maxval(MaxJ))::N integer::J N=9 do J=1,maxval(MaxJ) write(*,*)N(J) enddo end $ /irun/bin/gfortran pr34002.f90 $ ./a 9 9 I'm closing this as fixed for 4.3.0. Please try to upgrade to the latest version, which is available from the gfortran wiki - http://gcc.gnu.org/wiki/GFortran , together with copies of all the fortran standards. Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34002