public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/64239] regex_iterator::operator= should copy match_results::position
Date: Sat, 13 Dec 2014 23:11:00 -0000	[thread overview]
Message-ID: <bug-64239-4-JCpMuw1C9r@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-64239-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239

--- Comment #6 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Sat Dec 13 23:10:39 2014
New Revision: 218711

URL: https://gcc.gnu.org/viewcvs?rev=218711&root=gcc&view=rev
Log:
    PR libstdc++/64239
    * include/bits/regex.h (match_results<>::match_results,
    match_results<>::operator=, match_results<>::position,
    match_results<>::swap): Fix ctor/assign/swap.
    * include/bits/regex.tcc: (__regex_algo_impl<>,
    regex_iterator<>::operator++): Set match_results::_M_begin as
    "start position".
    * testsuite/28_regex/iterators/regex_iterator/char/
    string_position_01.cc: Test cases.

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.tcc
   
branches/gcc-4_9-branch/libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/char/string_position_01.cc


  parent reply	other threads:[~2014-12-13 23:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-09 14:06 [Bug libstdc++/64239] New: " kariya_mitsuru at hotmail dot com
2014-12-10 13:36 ` [Bug libstdc++/64239] " redi at gcc dot gnu.org
2014-12-10 13:39 ` redi at gcc dot gnu.org
2014-12-10 16:20 ` kariya_mitsuru at hotmail dot com
2014-12-11  6:52 ` timshen at gcc dot gnu.org
2014-12-13 22:19 ` timshen at gcc dot gnu.org
2014-12-13 23:11 ` timshen at gcc dot gnu.org [this message]
2015-01-07  3:16 ` kariya_mitsuru at hotmail dot com
2015-01-09  3:59 ` timshen at gcc dot gnu.org
2015-01-09  5:52 ` timshen at gcc dot gnu.org
2015-03-09  6:45 ` timshen at gcc dot gnu.org
2023-07-20 11:42 ` redi at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-64239-4-JCpMuw1C9r@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).