This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]