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 libstdc++/36564] reading from std::ifstream( directory ) ...



------- 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


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