[PATCH][libcxx] Fix handling of control escapes "\cX" in std::regex

William Fisher william.w.fisher at gmail.com
Sun Jul 14 20:47:05 PDT 2013


This patch fixes an ill-formed comparison when parsing control escapes,
e.g. "\cA\ca". The code will now throw an error_escape exception for
invalid control sequences like "\c:" or "\c".

I've added the test cases to bad_escape.pass.cpp.

Thanks,
-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130714/782bb930/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: control_escape.patch
Type: application/octet-stream
Size: 2564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130714/782bb930/attachment.obj>


More information about the cfe-commits mailing list