This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/22131] std::num_get fails for input with invalid groups


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]