Strange stream behaviour
Roman Belenov
rbelenov@yandex.ru
Sat Oct 6 07:38:00 GMT 2001
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.
More information about the Libstdc++
mailing list