This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/7920: std::numeric_limits<char>::digits10 is incorrect (7, not 3)
- From: paolo at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, sbeasley at cs dot uic dot edu
- Date: 29 Sep 2002 07:44:40 -0000
- Subject: Re: libstdc++/7920: std::numeric_limits<char>::digits10 is incorrect (7, not 3)
- Reply-to: paolo at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, sbeasley at cs dot uic dot edu, gcc-gnats at gcc dot gnu dot org
Synopsis: std::numeric_limits<char>::digits10 is incorrect (7, not 3)
State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Sun Sep 29 00:44:39 2002
State-Changed-Why:
This is already fixed for 3.3. Confirmed, but not a
regression, for 3.2. The correct value, however, is 2 not
3, since - according to 18.2.1.2,9 - digits10 is "number of
base10 digits that can be represented without change" and
definitely for char on your system this is impossible for,
say, 500!
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7920