diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-06-28 18:57:30 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-06-28 18:57:30 +0000 |
commit | 21246e3314785180079699edcdd1b84b277067c8 (patch) | |
tree | 1340b4d4c5d80a4f93ef4f5660607188012ea184 /libcxx/include/regex | |
parent | ee740c4d88cca4f9056ca4370cb90209ed4ee8db (diff) | |
download | bcm5719-llvm-21246e3314785180079699edcdd1b84b277067c8.tar.gz bcm5719-llvm-21246e3314785180079699edcdd1b84b277067c8.zip |
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
Diffstat (limited to 'libcxx/include/regex')
-rw-r--r-- | libcxx/include/regex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex index d1afa54a894..27c7ecfa4e5 100644 --- a/libcxx/include/regex +++ b/libcxx/include/regex @@ -4481,7 +4481,7 @@ basic_regex<_CharT, _Traits>::__parse_character_escape(_ForwardIterator __first, ++__first; } #ifndef _LIBCPP_NO_EXCEPTIONS - else if (__str) + else throw regex_error(regex_constants::error_escape); #endif // _LIBCPP_NO_EXCEPTIONS break; |