You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an inadmissible choice, because it violates [re.grammar]/9:
The results from multiple calls to traits_inst.lookup_classname can be bitwise or'ed together and subsequently passed to traits_inst.isctype.
Specifically, or'ing the char_class_type for "w" with the char_class_type for any other character class always produces the value for "w" again, even if the combination should match more characters.
Additional remarks
I think resolving this issue will break ABI. However, it should be possible to mitigate the problems caused by this issue.
The text was updated successfully, but these errors were encountered:
regex_traits<_Elem>
usesstatic_cast<ctype_base::mask>(-1)
to represent the character class "w":STL/stl/inc/regex
Line 354 in 8124540
This is an inadmissible choice, because it violates [re.grammar]/9:
Specifically, or'ing the
char_class_type
for "w" with thechar_class_type
for any other character class always produces the value for "w" again, even if the combination should match more characters.Additional remarks
I think resolving this issue will break ABI. However, it should be possible to mitigate the problems caused by this issue.
The text was updated successfully, but these errors were encountered: