[Bug libstdc++/77356] regex error for a ECMAScript syntax string

timshen at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Aug 27 02:04:00 GMT 2016


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


More information about the Gcc-bugs mailing list