------- Comment #3 from luflarois at gmail dot com 2010-03-02 14:10 ------- (In reply to comment #1) > 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 > Hi Burnus,
The Gfortran version is GNU Fortran (Ubuntu 4.4.1-4ubuntu9) 4.4.1 I do not have a minimal example. I run a meteorological model (CCATT-BRAMS) and the only thing I can do is to isolate a part of code. But, unfortunattely, it also makes a huge code. I will try to make, compile and run a small code like the example you post in previous email. Thanks --------------------------------------- Luiz Flávio -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43228