https://bugs.llvm.org/show_bug.cgi?id=38604
Bug ID: 38604
Summary: std::string is too eager in
convertibility-to-string_view checks
Product: libc++
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: ldio...@apple.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com
Created attachment 20734
--> https://bugs.llvm.org/attachment.cgi?id=20734&action=edit
libc++-style test case
Since https://reviews.llvm.org/D48616, we’re checking
convertibility-to-string_view in several std::string methods. However, those
new templated methods are not guarded behind C++17 checks, which means that
we’re still making those checks in C++11 and C++14. This is bad for types that
provide promiscuous conversion operators, as they can sniff that we're
providing these methods in C++11/C++14. This breaks conforming (but misbehaved)
code. I attached a test case that currently fails.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs