This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/45628] std::fstream::tellg invalidates I/O buffer
- From: "potswa at mac dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2010 07:09:11 -0000
- Subject: [Bug libstdc++/45628] std::fstream::tellg invalidates I/O buffer
- References: <bug-45628-18186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from potswa at mac dot com 2010-09-10 07:09 -------
Created an attachment (id=21762)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21762&action=view)
simple testcase
This little program attempts to read three characters from its own source,
checking the position each time. Reading three bytes from buffered file should
only underflow once, right?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628