This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
A bug in the current _M_insert_float/_M_group_float
- From: Paolo Carlini <pcarlini at suse dot de>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Cc: Jerry Quinn <jlquinn at optonline dot net>
- Date: Thu, 18 Dec 2003 14:36:17 +0100
- Subject: A bug in the current _M_insert_float/_M_group_float
Hi,
I think there is a bug, which, however, probably I'm not going to
fix since we are in the process of replacing all of this with the
fast code adapted from v2. But it may be worth pointing it out,
also to be sure that we do this right in the new framework.
Basically, in _M_group_float, if __p is NULL - this means that no
decimal digit was found - the whole [__cs, __cs + __len) is considered
for grouping, irrespective of the use of a scientific notation!
Paolo.
P.S. Hummm, first blush the problem is present also in the last
version I have of Jerry's code... Jerry?