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 Regression] [C++17] ambiguity in string assignment due to string_view overload


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.
"""

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