potential bug in libstc++ ?
Jonathan Wakely
jwakely@redhat.com
Tue Nov 14 18:01:00 GMT 2017
On 14/11/17 15:04 +0000, Jonathan Wakely wrote:
>On 14 November 2017 at 14:35, Sergey Nenakhov wrote:
>> Hello.
>>
>> Excuse me if I'm posting to the wrong mailing list.
>
>libstdc++ has its own mailing list (which Richard CC'd).
>
>> I've grabbed gcc-7.2.0
>> sources and noticed strange statement in the file
>> gcc-7.2.0\libstdc++-v3\include\bits\locale_conv.h which seems like a bug
>> to me:
>> Line 434 and 434 of that file are:
>> if (__nbytes < 1)
>> __nbytes == 1;
>>
>> Should not it be ?
>> if (__nbytes < 1)
>> __nbytes = 1;
>>
>> (= vs == if it didn't hit your eye).
>
>Yes, thanks, I'll take care of it.
Fixed on trunk by this patch.
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2623 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20171114/dc94dc39/attachment.bin>
More information about the Libstdc++
mailing list