commit | 21246e3314785180079699edcdd1b84b277067c8 | [log] [tgz] |
---|---|---|
author | Howard Hinnant <hhinnant@apple.com> | Fri Jun 28 18:57:30 2013 +0000 |
committer | Howard Hinnant <hhinnant@apple.com> | Fri Jun 28 18:57:30 2013 +0000 |
tree | 1340b4d4c5d80a4f93ef4f5660607188012ea184 | |
parent | ee740c4d88cca4f9056ca4370cb90209ed4ee8db [diff] [blame] |
Bill Fisher: Fix for failing to throw an exception in regex when parsing an invalid escape sequence. This fixes http://llvm.org/bugs/show_bug.cgi?id=16023 llvm-svn: 185192
diff --git a/libcxx/include/regex b/libcxx/include/regex index d1afa54..27c7ecf 100644 --- a/libcxx/include/regex +++ b/libcxx/include/regex
@@ -4481,7 +4481,7 @@ ++__first; } #ifndef _LIBCPP_NO_EXCEPTIONS - else if (__str) + else throw regex_error(regex_constants::error_escape); #endif // _LIBCPP_NO_EXCEPTIONS break;