This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]