[Patch] Fix libstdc++/13858
Paolo Carlini
pcarlini@suse.de
Fri Feb 13 17:17:00 GMT 2004
Hi,
the fix is straighforward: consistently with underflow, throw an
exception from overflow too (actually, _M_convert_to_external) in
case of conversion errors. Nice that overall the affected code
becomes simpler.
The new behavior implies that I had to tweak a few pre-existing
tests which more naively checked for eof in case of failure.
Took the occasion to simplify a trivial conditional.
Tested x86-linux. If nobody objects will commit to both mainline
and 3_4-branch before the end of the week.
Paolo.
/////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_13858
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040213/a0d6bd48/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_13858
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040213/a0d6bd48/attachment-0001.ksh>
More information about the Libstdc++
mailing list