[LLVMbugs] [Bug 18514] New: regex doesn't use regex_traits::value() to parse quantifiers and backreferences
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 16 16:23:38 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18514
Bug ID: 18514
Summary: regex doesn't use regex_traits::value() to parse
quantifiers and backreferences
Product: libc++
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: hhinnant at apple.com
Reporter: cubbimew at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Per C++ 28.13[re.grammar]/13, "Where the regular expression grammar requires
the conversion of a sequence of characters to an integral value, this is
accomplished by calling traits_inst.value."
Per ECMA-262, Quantifier includes DecimalDigits and DecimalEscape includes
DecimalIntegerLiteral, both of which are sequences of characters that are
converted to integral values.
in libc++, basic_regex::__parse_DUP_COUNT obtains the value of a quantifier by
executing *__first - '0', and basic_regex::__parse_BACKREF obtains its value by
executing *__temp - '0'.
(the \u and \x escapes, however, do call __traits_.value() as expected)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140117/ad8e46ce/attachment.html>
More information about the llvm-bugs
mailing list