]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
regex_executor.tcc (_DFSExecutor<>::_M_dfs): Fix wrong backup variable initialization.
authorTim Shen <timshen91@gmail.com>
Thu, 3 Oct 2013 20:54:01 +0000 (20:54 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Thu, 3 Oct 2013 20:54:01 +0000 (20:54 +0000)
2013-10-03  Tim Shen  <timshen91@gmail.com>

* include/bits/regex_executor.tcc (_DFSExecutor<>::_M_dfs): Fix wrong
backup variable initialization.

From-SVN: r203190

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex_executor.tcc

index 896bc6ea21bb1de3fe9d7bf0d68e0a0fbee0a159..b02593aa5056de29704125ae9d1eb787f62d0aca 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-03  Tim Shen  <timshen91@gmail.com>
+
+       * include/bits/regex_executor.tcc (_DFSExecutor<>::_M_dfs): Fix wrong
+       backup variable initialization.
+
 2013-10-03  John Woolverton  <jdwoolverton@gmail.com>
 
        PR libstdc++/58604
index 3a4080081b74af69044719bd4aa857bfe211496e..60ba9527c64d9412ed08e082e9d672830469625c 100644 (file)
@@ -66,7 +66,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
          if (!_M_cur_results[__state._M_subexpr].matched
              || _M_cur_results[__state._M_subexpr].first != __current)
            {
-             auto __back = __current;
+             auto __back = _M_cur_results[__state._M_subexpr].first;
              _M_cur_results[__state._M_subexpr].first = __current;
              __ret = _M_dfs(__state._M_next);
              _M_cur_results[__state._M_subexpr].first = __back;