libstdc++/8399: sync_with_stdio(false) breaks unformatted input
Paolo Carlini
pcarlini@unitus.it
Sun Nov 10 10:45:00 GMT 2002
Hi,
this is a reduced testcase:
////
#include <iostream>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
char c;
cin.get(c);
cout.put(c);
return 0;
}
////
What happens with current mainline is that a <newline>
doesn't end the get, whereas this happens with the 'sync'.
Therefore, the issue seems more than vaguely related to
the obnoxious libstdc++/6745 and all that...
Ciao, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8399
More information about the Gcc-bugs
mailing list