From 54f6bd59f57150234f5d99d564c57a5c628e7ed6 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. llvm-svn: 199122 --- libcxx/include/regex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/include/regex b/libcxx/include/regex index f8569f950bcd..b7416f81c241 100644 --- a/libcxx/include/regex +++ b/libcxx/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 (); }