libstdc++/8399: sync_with_stdio(false) breaks unformatted input
Paolo Carlini
pcarlini@unitus.it
Sun Nov 10 10:46:00 GMT 2002
The following reply was made to PR libstdc++/8399; it has been noted by GNATS.
From: Paolo Carlini <pcarlini@unitus.it>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc: bkoz <bkoz@redhat.com>
Subject: Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
Date: Sun, 10 Nov 2002 19:46:41 +0100
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-prs
mailing list