From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21200 invoked by alias); 24 Jun 2005 17:11:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21184 invoked by uid 48); 24 Jun 2005 17:11:34 -0000 Date: Fri, 24 Jun 2005 17:11:00 -0000 Message-ID: <20050624171134.21183.qmail@sourceware.org> From: "sebor at roguewave dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050620234814.22131.sebor@roguewave.com> References: <20050620234814.22131.sebor@roguewave.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/22131] std::num_get fails for input with invalid groups X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03029.txt.bz2 List-Id: ------- 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