This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/43265] [4.3/4.4/4.5 Regression] No EOF condition if reading with '(x)' from an empty file



------- Comment #6 from jvdelisle at gcc dot gnu dot org  2010-03-06 03:32 -------
Standby folks.  This problem has nothing to do with

/* If we hit EOF previously with the no_error flag set (i.e. X, T,
       TR edit descriptors), and we now try to read again, this time
       without setting no_error.  */
    if (!no_error && dtp->u.p.at_eof)
      {
        *length = 0;
        hit_eof (dtp);
        return NULL;
      }

That block of code is never executed for either test case. It may even be dead
code.  Stay tuned.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]