This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/64239] regex_iterator::operator= should copy match_results::position
- From: "timshen at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Jan 2015 05:52:52 +0000
- Subject: [Bug libstdc++/64239] regex_iterator::operator= should copy match_results::position
- Auto-submitted: auto-generated
- References: <bug-64239-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239
--- Comment #9 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Fri Jan 9 05:52:18 2015
New Revision: 219374
URL: https://gcc.gnu.org/viewcvs?rev=219374&root=gcc&view=rev
Log:
PR libstdc++/64239
Backported form mainline
2015-01-09 Tim Shen <timshen@google.com>
* include/bits/regex.h (match_results<>::swap): Use std::swap
instead of swap.
* include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
Likewise.
* testsuite/28_regex/match_results/swap.cc: New testcase.
Added:
branches/gcc-4_9-branch/libstdc++-v3/testsuite/28_regex/match_results/swap.cc
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex.h
branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex_compiler.tcc