------- Comment #4 from kargl at gcc dot gnu dot org 2006-12-13 23:22 ------- You code compiles fine with newer versions of gfortran
troutmask:sgk[224] gfc --version GNU Fortran 95 (GCC) 4.2.0 20060927 (experimental) troutmask:sgk[225] gfc4x --version GNU Fortran 95 (GCC) 4.3.0 20061211 (experimental) Note gfortran 4.1.0 has numerous bugs that may never be fixed in the 4.1 branch, which are fixed in 4.2.x and 4.3.x. You'll lead a much less painful life if you upgrade gfortran to one available from the gfortran wiki. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30206