------- Comment #1 from paolo dot carlini at oracle dot com 2008-06-18 22:01 ------- I don't think I have to add much here, you got already the basic point right: according to the current standard at least, the open succeeds if the underlying fopen succeeds, and certainly it succeeds here, then of course the actual getline doesn't succeed and the fail bit is immediately set.
-- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36564