From 72fe0ae7cf1df57601c63178fe5a46b32c3cb527 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Mon, 13 Jan 2014 17:47:08 +0000 Subject: [PATCH] Fix a bug in regex_token_iterator's copy constructor. Caught by Bob Wilson. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@199122 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/regex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/regex b/include/regex index f8569f95..b7416f81 100644 --- a/include/regex +++ b/include/regex @@ -6288,7 +6288,7 @@ regex_token_iterator<_BidirectionalIterator, _CharT, _Traits>:: __subs_(__x.__subs_) { if (__x.__result_ == &__x.__suffix_) - __result_ == &__suffix_; + __result_ = &__suffix_; else if ( __result_ != nullptr ) __establish_result (); }