[Patch] Fix libstdc++/9826
Benjamin Kosnik
bkoz@redhat.com
Fri Mar 7 17:38:00 GMT 2003
On Tue, 25 Feb 2003 22:04:52 +0100
Paolo Carlini <pcarlini@unitus.it> wrote:
>... sorry: the previous patch has a typo in the 3rd testcase.
2003-02-25 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9826
* include/bits/istream.tcc (operator>>(_CharT*),
operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
* testsuite/27_io/stringstream.cc (test02): Add.
* include/bits/istream.tcc (operator>>(_CharT*)):
Assign a char_type to *__s.
Looks great, thanks Paolo. Please put this in both branches.
I thought all the char_traits fixes were in, but apparently a couple
places were missed. (I'm not quite sure how, as all these classes are
checked for instantiating POD traits classes in the testsuite....)
-benjamin
More information about the Libstdc++
mailing list