diff options
author | Tim Shen <timshen@google.com> | 2015-01-02 22:33:04 +0000 |
---|---|---|
committer | Tim Shen <timshen@gcc.gnu.org> | 2015-01-02 22:33:04 +0000 |
commit | d0cbab5fed627f4cb9fd6fbce64f648454348c80 (patch) | |
tree | fe5c357505243a714bbb6b68b999ed4dc4551991 /libstdc++-v3 | |
parent | fe86867f07504f643ab9bf1147bac785222cadb0 (diff) | |
download | gcc-d0cbab5fed627f4cb9fd6fbce64f648454348c80.zip gcc-d0cbab5fed627f4cb9fd6fbce64f648454348c80.tar.gz gcc-d0cbab5fed627f4cb9fd6fbce64f648454348c80.tar.bz2 |
re PR libstdc++/64475 (FAIL: 28_regex/algorithms/regex_match/ecma/char/backref.cc)
PR libstdc++/64475
* include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
iterator, since the original one shouldn't be mutated.
From-SVN: r219151
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/regex_executor.tcc | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 121ac77..4c9dc05 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-01-02 Tim Shen <timshen@google.com> + + PR libstdc++/64475 + * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the + iterator, since the original one shouldn't be mutated. + 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de> PR libstdc++/64422 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; |