[Bug libstdc++/37958] num_get<>::do_get(bool) sets eofbit flag incorrectly when boolalpha == true

tsyvarev at ispras dot ru gcc-bugzilla@gcc.gnu.org
Fri Oct 31 10:36:00 GMT 2008



------- Comment #4 from tsyvarev at ispras dot ru  2008-10-31 10:34 -------
Created an attachment (id=16595)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16595&action=view)
Test, modelling example from standard exactly

("For targets true: "1" and false: "0", the input sequence "1" yields val ==
true and err == str.goodbit")

Output the same:

andrew@Ubuntu:/mnt/hgfs/shared/temp/test$ g++ test.cpp && ./a.out
eofbit was set.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37958



More information about the Gcc-bugs mailing list