regex.tcc: Handle regex_constants::__polynomial.
authorTim Shen <timshen@google.com>
Tue, 28 Apr 2015 04:16:48 +0000 (04:16 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Tue, 28 Apr 2015 04:16:48 +0000 (04:16 +0000)
commite4846be7ddbd0a4e2c703df0d1073b67d872cd5f
tree75c7357e8bb4da104798be4dbbf37bed80aa534e
parent009b7fc1870354e2c70d21c88fa671113a8e5f13
regex.tcc: Handle regex_constants::__polynomial.

* include/bits/regex.tcc: Handle regex_constants::__polynomial.
* include/bits/regex_automaton.tcc: Throw exception when parsing
back-reference with flag __polynomial.
* include/bits/regex_constants.h: Add extension flag
syntax_option_type __polynomial.
* bits/regex_executor.tcc: Still let BFS process ECMAScript.
Alternative operation will be fixed in the coming refactoring.
* testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
loose match_search_debug to use DFS only.

From-SVN: r222500
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.tcc
libstdc++-v3/include/bits/regex_automaton.tcc
libstdc++-v3/include/bits/regex_constants.h
libstdc++-v3/include/bits/regex_executor.tcc
libstdc++-v3/testsuite/28_regex/algorithms/regex_search/61424.cc