re PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access...
authorTim Shen <timshen@google.com>
Thu, 22 Jan 2015 05:02:38 +0000 (05:02 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Thu, 22 Jan 2015 05:02:38 +0000 (05:02 +0000)
commit77033d2668248d1050d27ea57a8e85a1b3740ac8
tree90302357b43d6ab8e2367e5fa7e0b3b492326363
parentfa3340ec8f4d26bba4efa5095c8a2a142f34b8bc
re PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access iterators)

PR libstdc++/64649
* include/bits/regex.tcc (regex_traits<>::lookup_collatename,
regex_traits<>::lookup_classname): Correctly narrow input chars.
* testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.

From-SVN: r219986
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.tcc
libstdc++-v3/testsuite/28_regex/traits/wchar_t/user_defined.cc