------- Comment #1 from burnus at gcc dot gnu dot org 2010-03-02 12:46 ------- Luiz: Can you please state the version of gfortran? (Use: "gfortran -v" and post the "Target:" line and the "gcc version). Additionally: For a good bugreport, please also include a minimal example. Without an example (Fortran code) it is most of the time impossible to find a bug.
Jerry, can you check? The following program gives the wrong output with GCC 4.3.2 - but it might have been fixed in 4.4.x or 4.5.x, which I cannot check at the moment. integer :: a(3,3) namelist /nml/a open(99, file="test.dat") read(99,nml=nml) print *, a(:,1) print *, a(:,2) print *, a(:,3) end &nml a(1,:) = 1 2 3 a(2,:) = 4 5 6 a(3,:) = 7 8 9 / Output: gfortran 4.3.2 (rev. 141291) | ifort (as expected): 1 4 7 | 1 4 7 32767 6 8 | 2 5 8 -256 -1 9 | 3 6 9 -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot gnu dot | |org Keywords| |wrong-code Known to fail| |4.3.2 Summary|Reading at 2 dimensions |NAMELIST I/O: Reading at 2 |(rank) array values. |dimensions (rank) array | |values. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43228