public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/13369] New: __verify_grouping (and __add_grouping?) not correct
@ 2003-12-09 14:15 paolo at gcc dot gnu dot org
  2003-12-09 14:15 ` [Bug libstdc++/13369] " paolo at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-12-09 14:15 UTC (permalink / raw)
  To: gcc-bugs

This is one those internal memos...

I'm comparing 22.2.3.1.2, p3 to our current implementation, some things seem
wrong. For instance, in __verify_grouping, when __j == __len, we exit the for
loop, then enter it again with __j reset to zero and do the for loop again.
This is not ok: instead, we should from now on keep __j fixed at __len - 1.
Example: "\04\03\02", means that 12,34,56,789,0123 is ok, that is, the final
\02 matches any number of initial two digits groups. 

Also, if a group has value <= 0 it means an unlimited size for the group (of
course it's meaningful only as the last group) and should match *any* possible
length for the first parsed group.

-- 
           Summary: __verify_grouping (and __add_grouping?) not correct
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: paolo at gcc dot gnu dot org
        ReportedBy: paolo at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: Any
GCC target triplet: Any


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13369


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <20031209141517.13369.pcarlini@suse.de>]

end of thread, other threads:[~2004-01-29  2:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-09 14:15 [Bug libstdc++/13369] New: __verify_grouping (and __add_grouping?) not correct paolo at gcc dot gnu dot org
2003-12-09 14:15 ` [Bug libstdc++/13369] " paolo at gcc dot gnu dot org
2003-12-09 14:30 ` paolo at gcc dot gnu dot org
2003-12-09 14:30 ` paolo at gcc dot gnu dot org
2003-12-30 11:41 ` cvs-commit at gcc dot gnu dot org
2003-12-30 11:44 ` paolo at gcc dot gnu dot org
     [not found] <20031209141517.13369.pcarlini@suse.de>
2004-01-29  2:52 ` pcarlini at suse dot de
2004-01-29  2:52 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).