This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, marc-oliver dot gewaltig at hre-ftr dot f dot rd dot honda dot co dot jp, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Cc: bkoz <bkoz at redhat dot com>
- Date: Sun, 10 Nov 2002 19:46:41 +0100
- Subject: Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
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