This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/79162] [7 Regression] [C++17] ambiguity in string assignment due to string_view overload
- From: "david.abdurachmanov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 May 2017 13:52:46 +0000
- Subject: [Bug libstdc++/79162] [7 Regression] [C++17] ambiguity in string assignment due to string_view overload
- Auto-submitted: auto-generated
- References: <bug-79162-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79162
David Abdurachmanov <david.abdurachmanov at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david.abdurachmanov at gmail dot c
| |om
--- Comment #7 from David Abdurachmanov <david.abdurachmanov at gmail dot com> ---
This potentially caused errors while compiling Clang 3.9 in C++1z mode.
See Richard Smith comments on
http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20170522/193826.html
Quote:
"""
This is wrong. We have a "public:" on the previous line! But I think this
is just GCC's diagnostic being screwed up and what it's trying to say is
that it selected a deleted function.
But this function is the wrong overload resolution result; the operator
std::string from the base class should be selected.
"""