https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67362
--- Comment #2 from Tim Shen <timshen at gcc dot gnu.org> --- Author: timshen Date: Fri Aug 28 03:03:55 2015 New Revision: 227290 URL: https://gcc.gnu.org/viewcvs?rev=227290&root=gcc&view=rev Log: Backport from mainline 2015-08-28 Tim Shen <tims...@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-5-branch/libstdc++-v3/testsuite/28_regex/regression.cc Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/bits/regex_scanner.tcc