This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

potential bug in libstc++ ?


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

Thanks!

Sergey Nenakhov.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]