This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/64441] A match_results returns an incorrect sub_match if the sub_match::matched is false
- 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: Wed, 31 Dec 2014 10:28:13 +0000
- Subject: [Bug libstdc++/64441] A match_results returns an incorrect sub_match if the sub_match::matched is false
- Auto-submitted: auto-generated
- References: <bug-64441-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64441
--- Comment #1 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Wed Dec 31 10:27:41 2014
New Revision: 219121
URL: https://gcc.gnu.org/viewcvs?rev=219121&root=gcc&view=rev
Log:
PR libstdc++/64441
* include/bits/regex.tcc (__regex_algo_impl): s/auto/auto&/.
* include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Likewise.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/regex.tcc
trunk/libstdc++-v3/include/bits/regex_executor.tcc