This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/22131] std::num_get fails for input with invalid groups
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2005 17:11:34 -0000
- Subject: [Bug libstdc++/22131] std::num_get fails for input with invalid groups
- References: <20050620234814.22131.sebor@roguewave.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sebor at roguewave dot com 2005-06-24 17:11 -------
Yes, sorry for being too terse. The value is supposed to be stored even if the
placement of the thousands separators is invalid, just as long as the input
sequence matches the grammar in 22.2.3.1, p2.
For example, while "00#0#1" matches the grammar, "000##1" doesn't (because
consecutive thousands sperataors are not permitted). In neither case does the
placement of the thousands separators match the grouping, so failbit is set. But
in the former cases the facet is supposed to store the value while in the latter
it must leave it unchanged.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22131