libstdc++/6360: Wrong workaround in char_traits.h - ignore stops on \0xff
bkoz@gcc.gnu.org
bkoz@gcc.gnu.org
Fri Apr 19 13:04:00 GMT 2002
Synopsis: Wrong workaround in char_traits.h - ignore stops on \0xff
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Fri Apr 19 12:28:52 2002
State-Changed-Why:
confirmed on 3.1, 3.2 sources
// 2002-04-19 PR libstdc++ 6360
#include <sstream>
using namespace std;
int main()
{
bool test = true;
stringstream ss("abcd" "\xFF" "1234ina donna coolbrith");
char c;
ss >> c;
test &= c == 'a';
ss.ignore(8);
ss >> c;
test &= c == 'i';
return 0;
}
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6360
More information about the Gcc-bugs
mailing list