------- Comment #1 from tobias dot burnus at physik dot fu-berlin dot de  
2006-04-12 20:45 -------
Created an attachment (id=11252)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11252&action=view)
test.tar.gz containing inp-test and test.F

This is SUSE's gcc-fortran-4.1.0-15, "Merge[d] up to rev 112748 for gfortran
changes on the branch."

The attached program "test.F" reads an inputfile (also attached), which
contains three lines:
1| igrd=1,lwb=F,ndvgrd=6,idsprs=0,chng=-0.100D-11
2|
3| 12

This file is read by three "READ (5,*,END=<n>,ERR=<n>) ntype" lines. With
Ifort, the first READ has an error and the second read gets the "12".
With gfortran, all three reads get an error.

Expected: Either the second or the third read picks up the 12.

The attached program prints with the Intel Fortran Compiler 9.0.033:
  Second read: ntype =           12
whereas with gfortran it only shows:
  Error glancing  at inp-file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27138

Reply via email to