https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102667

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-10-09
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The match_results sequence contains extra "hidden" elements at the end, which
should not be visible when traversing the container using begin() and end().

The bug is in the end() function, which returns the position after the hidden
elements, not after the (zero length) sequence of matches.

Reply via email to