re PR libstdc++/63199 (Inserting std::wregex to std::vector loses some std::wregex...
authorTim Shen <timshen@google.com>
Thu, 25 Sep 2014 04:43:19 +0000 (04:43 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Thu, 25 Sep 2014 04:43:19 +0000 (04:43 +0000)
commit2bde8cac3724cd02c8114275f5c4688f25558859
tree4794d1c6345fb4cf7144353f372fc2b99920c7a9
parent21a9ce6e0e7d79661b0f3d46623e3027a5860765
re PR libstdc++/63199 (Inserting std::wregex to std::vector loses some std::wregex values)

PR libstdc++/63199
* include/bits/regex.h (basic_regex::basic_regex, basic_regex::assign,
basic_regex::imbue, basic_regex::getloc, basic_regex::swap): Add
_M_loc for basic_regex.
* include/bits/regex_automaton.h: Add _M_traits for _NFA.
* include/bits/regex_compiler.h (_Compiler::_M_get_nfa, __compile_nfa):
Make _Compiler::_M_nfa heap allocated.
* include/bits/regex_compiler.tcc (_Compiler::_Compiler): Make
_Compiler::_M_nfa heap allocated.
* include/bits/regex_executor.h (_Executor::_M_is_word):
Fix accessing _M_traits.
* include/bits/regex_executor.tcc (_Executor::_M_dfs):
Fix accessing _M_traits.
* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/63199.cc:
New testcase.

From-SVN: r215578
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/regex_automaton.h
libstdc++-v3/include/bits/regex_compiler.h
libstdc++-v3/include/bits/regex_compiler.tcc
libstdc++-v3/include/bits/regex_executor.h
libstdc++-v3/include/bits/regex_executor.tcc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/63199.cc [new file with mode: 0644]