This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15995] istringbuf/operator
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2004 09:56:52 -0000
- Subject: [Bug libstdc++/15995] istringbuf/operator
- References: <20040615072212.15995.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2004-06-15 09:56 -------
Not a bug. At the end of the first call of operator>> the eofbit is set in s.
Then, at the beginning of the second operator>> the sentry finds eofbit set and
the whole input operation fails: i remains == 0. Just add s.clear(); in the
middle to get what you want.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15995