re PR libstdc++/63775 ([C++11] Regex range with leading dash (-) not working)
authorTim Shen <timshen@google.com>
Thu, 13 Nov 2014 07:40:01 +0000 (07:40 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Thu, 13 Nov 2014 07:40:01 +0000 (07:40 +0000)
commit79b576cc38fbb037993d56b9e5f7e1fca7ee5807
tree68d467d9153828b89fbe9883b742b813cd151326
parent0a134b2aa3328e3707774661c7b727a8270758c3
re PR libstdc++/63775 ([C++11] Regex range with leading dash (-) not working)

PR libstdc++/63775
* include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
_BracketMatcher<>::_M_make_range): Throw regex_erorr on invalid range
like [z-a]. Change _M_expression_term interface.
* include/bits/regex_compiler.tcc (
_Compiler<>::_M_insert_bracket_matcher,
_Compiler<>::_M_expression_term): Rewrite bracket expression parsing.
* testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
Add testcases and move file out of extended.

From-SVN: r217461
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex_compiler.h
libstdc++-v3/include/bits/regex_compiler.tcc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc [new file with mode: 0644]
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/extended/cstring_bracket_01.cc [deleted file]