This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/77356] regex error for a ECMAScript syntax string
- 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: Sat, 27 Aug 2016 02:03:55 +0000
- Subject: [Bug libstdc++/77356] regex error for a ECMAScript syntax string
- Auto-submitted: auto-generated
- References: <bug-77356-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77356
--- Comment #2 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Sat Aug 27 02:03:23 2016
New Revision: 239794
URL: https://gcc.gnu.org/viewcvs?rev=239794&root=gcc&view=rev
Log:
PR libstdc++/77356
* include/bits/regex_compiler.tcc(_M_insert_bracket_matcher,
_M_expression_term): Modify to support dash literal.
* include/bits/regex_scanner.h: Add dash as a token type to make
a different from the mandated dash literal by escaping.
* include/bits/regex_scanner.tcc(_M_scan_in_bracket): Emit dash
token in bracket expression parsing.
* testsuite/28_regex/regression.cc: Add new testcases.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/regex_compiler.tcc
trunk/libstdc++-v3/include/bits/regex_scanner.h
trunk/libstdc++-v3/include/bits/regex_scanner.tcc
trunk/libstdc++-v3/testsuite/28_regex/regression.cc