<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - regex doesn't use regex_traits::value() to parse quantifiers and backreferences"
href="http://llvm.org/bugs/show_bug.cgi?id=18514">18514</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>regex doesn't use regex_traits::value() to parse quantifiers and backreferences
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>hhinnant@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cubbimew@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>