commit | 918f2a80ababefb69a9e695767350f3912c7d127 | [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 | 64fff5648cd3b359c6c15d602a719400b99b42b3 | |
parent | b9d9fb4a176e704b570d2d1e2e9143a60e3457d5 [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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@185192 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/regex b/include/regex index d1afa54..27c7ecf 100644 --- a/include/regex +++ b/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;