This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/36564] reading from std::ifstream( directory ) ...
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2008 22:01:48 -0000
- Subject: [Bug libstdc++/36564] reading from std::ifstream( directory ) ...
- References: <bug-36564-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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