------- 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