This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: potential bug in libstc++ ?
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Sergey Nenakhov <nenakhov dot sergey at gmail dot com>, "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 14 Nov 2017 15:55:04 +0100
- Subject: Re: potential bug in libstc++ ?
- Authentication-results: sourceware.org; auth=none
- References: <CAODArAO1XROyp7pmriuhRwhcA0FMQ+ZwwWq-sQR-p-fmnQ_ONg@mail.gmail.com>
On Tue, Nov 14, 2017 at 3:35 PM, Sergey Nenakhov
<nenakhov.sergey@gmail.com> wrote:
> Hello.
>
> Excuse me if I'm posting to the wrong mailing list. 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).
>
> I couldn't find libstdc++-v3 folder in online svn repository to verify if
> it was changed since 7.2.0 release
Still there.
Richard.
> Thanks!
>
> Sergey Nenakhov.