https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79162
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Tue Mar 14 14:51:19 2017 New Revision: 246128 URL: https://gcc.gnu.org/viewcvs?rev=246128&root=gcc&view=rev Log: PR libstdc++/79162 disambiguate assignment from string_view PR libstdc++/79162 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace with a constrained template. [!_GLIBCXX_USE_CXX11_ABI] (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise. * testsuite/21_strings/basic_string/cons/char/79162.cc: New test. * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test. Added: trunk/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/79162.cc trunk/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/79162.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/basic_string.h