This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/79162] [7/8 Regression] [C++17] ambiguity in string assignment due to string_view overload


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79162

--- Comment #22 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Sep 20 18:52:56 2017
New Revision: 253025

URL: https://gcc.gnu.org/viewcvs?rev=253025&root=gcc&view=rev
Log:
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.

Added:
   
branches/gcc-7-branch/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/moveable2_c++17.cc
   
branches/gcc-7-branch/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/moveable2_c++17.cc
Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/include/bits/basic_string.h

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]