This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/67362] std::regex("((.)", std::regex_constants::basic) throws
- 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, 28 Aug 2015 03:40:35 +0000
- Subject: [Bug libstdc++/67362] std::regex("((.)", std::regex_constants::basic) throws
- Auto-submitted: auto-generated
- References: <bug-67362-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67362
--- Comment #3 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Fri Aug 28 03:39:53 2015
New Revision: 227291
URL: https://gcc.gnu.org/viewcvs?rev=227291&root=gcc&view=rev
Log:
Backport from mainline
2015-08-28 Tim Shen <timshen@google.com>
PR libstdc++/67362
* include/bits/regex_scanner.tcc (_Scanner<>::_M_scan_normal):
Always returns ordinary char token if the char isn't
considered a special char.
* testsuite/28_regex/regression.cc: New test file for collecting
regression testcases from, typically, bugzilla.
Added:
branches/gcc-4_9-branch/libstdc++-v3/testsuite/28_regex/regression.cc
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex_scanner.tcc