PR libstdc++/79162 Fix std::string regression due to LWG 2946
authorJonathan Wakely <jwakely@redhat.com>
Wed, 20 Sep 2017 17:59:50 +0000 (18:59 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 20 Sep 2017 17:59:50 +0000 (18:59 +0100)
commit4cf5930fdc57650226d53eb4809ee4e565799456
treef021adf2d63264032fe3631076a5e3242400bc6f
parent836cccc71d0aef7308b8f4c02214ac2ed2f3643d
PR libstdc++/79162 Fix std::string regression due to LWG 2946

PR libstdc++/79162
* include/bits/basic_string.h (basic_string::_If_sv): Remove from the
overload set when the argument is derived from basic_string.
* testsuite/21_strings/basic_string/cons/char/moveable2_c++17.cc: New
test.
* testsuite/21_strings/basic_string/cons/wchar_t/moveable2_c++17.cc:
New test.

From-SVN: r253024
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/moveable2_c++17.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/moveable2_c++17.cc [new file with mode: 0644]