On 21 February 2014 00:00, Lars Gullik Bjønnes wrote:
>
>  * include/std/iomanip (_Quoted_string operator>>): Do not clear
>    string if input is not quoted.
>
> Currently the string is cleared regardless of
> how the string is handled. This patch just
> moves the clearing down so that we do not clear
> it if we are not going to quote the string
> (i.e. let operator>> handle the clearing if needed)
> and also not if we encounter any stream error.
>
> This has been reported as (bug 60270).
>
> I have no GCC paperwork in order, but I expect this change
> to be simple enough to not require that.

I agree, and we already have a testcase in the PR I opened.

I'll commit this for 4.9.1, thanks for reporting and fixing it.

Reply via email to