https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70745
Bug ID: 70745
Summary: Wrong handling of regex_constant::match_not_eow and
regex_constant::match_not_bow
Product: gcc
Version: 6.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: frrrwww at gmail dot com
Target Milestone: ---
Hello,
it seems the current regex implementation of libstdc++ does not handle
correctly the match_not_eow and match_not_bow flags.
in the _Executor _M_word_boundary method, it looks like the logic handles these
flags as disabling \b matching for beginning/end of words in general, when the
flags are intended to disable it only on the first/last position of the subject
text.