------- Comment #2 from jvdelisle at gcc dot gnu dot org 2010-02-24 02:55 ------- Do you intend math, mfh, mth, and nsp to be of type integer or real?
The following works: character(len=200) :: str real :: x,math,mfh,mth,nsp str = ' 4.38000+ 6 2.55100+ 0 4.50000+ 6 2.51970+ 0 5.00000+ 6 2.40000+ 01146 3 1 171' read(str,'(6e11.0,i4,i2,i3,i5)') a,math,mfh,mth,nsp print *, a,math,mfh,mth,nsp end (As I first read the bug report I though the issue is with BN/BZ handling. That part is correct, the problem is in the item count.) I agree with the off by one in the item count, it is item 2. I will fix that. -- jvdelisle at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-02-24 02:55:18 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43155