This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Strange stream behaviour
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Strange stream behaviour
- From: Roman Belenov <rbelenov at yandex dot ru>
- Date: 06 Oct 2001 18:35:57 +0400
I've found that simple copy program
-----------------------------------------
#include <iostream>
int main()
{
int ch;
while( (ch = std::cin.get()) != EOF )
std::cout.put(ch);
}
-----------------------------------------
duplicates pieces from input, first occurence being about
position 3000 in the input stream.
The program was compiled with gcc 3.0.1 using libstdc++ included in
it. gcc 2.95.3 works fine. I'm working under Windows 2000, gcc 3.0.1
was compiled under cygwin (using gcc 2.95.3 for bootstrapping).
--
With regards, Roman.