[Bug fortran/47878] [4.6 Regression] 187.facerec miscompares

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 24 14:55:00 GMT 2011


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

--- Comment #12 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-02-24 14:35:54 UTC ---
(In reply to comment #11)
> Test case for the actual issue:
>
> The crucial part seems to be to have (a) RECL= and (b) a line which is longer
> than 80 characters.

... and reading more that than available. For integer, such values are regarded
as 0.

Consequently, ifort and gfortran-4.1 print:
   63   67   68   72   78   90   99  114  133  146
  160  174  186  198  190  193  196  197  198  198
  199  198  200  199  200  197  198  200  200  201
  198  199  200  201  201  201  203  206  203  204
  206    0

While the trunk version prints:
  At line 6 of file bar.f90 (unit = 99, file = 'fort.99')
  Fortran runtime error: Bad value during integer read



More information about the Gcc-bugs mailing list