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

Howard Hinnant hhinnant at apple.com
Mon Jul 15 11:23:38 PDT 2013


On Jul 14, 2013, at 11:47 PM, William Fisher <william.w.fisher at gmail.com> wrote:

> 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
> <control_escape.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Yikes!  That was embarrassing.  Thanks!

Committed revision 186335.

Howard




More information about the cfe-commits mailing list