[Patch, libstdc++/64441] Fix sub_match::first and second
Tim Shen
timshen@google.com
Thu Jan 1 03:59:00 GMT 2015
On Wed, Dec 31, 2014 at 4:17 PM, David Edelsohn <dje.gcc@gmail.com> wrote:
> FAIL: 28_regex/algorithms/regex_match/ecma/char/backref.cc execution test
>
> on AIX.
Oops, a dumb mistake from fixing a dumb mistake. Thanks David! :)
Bootstrapped and tested.
--
Regards,
Tim Shen
-------------- next part --------------
commit adee3fe36298ddd79ec04a1e8c3ccacf76514479
Author: timshen <timshen@google.com>
Date: Wed Dec 31 19:07:55 2014 -0800
* include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
iterator, since the original one shouldn't be mutated.
diff --git a/libstdc++-v3/include/bits/regex_executor.tcc b/libstdc++-v3/include/bits/regex_executor.tcc
index 7954d06..a973667 100644
--- a/libstdc++-v3/include/bits/regex_executor.tcc
+++ b/libstdc++-v3/include/bits/regex_executor.tcc
@@ -310,7 +310,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (!__submatch.matched)
break;
auto __last = _M_current;
- for (auto& __tmp = __submatch.first;
+ for (auto __tmp = __submatch.first;
__last != _M_end && __tmp != __submatch.second;
++__tmp)
++__last;
More information about the Libstdc++
mailing list