<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - std::string is too eager in convertibility-to-string_view checks"
href="https://bugs.llvm.org/show_bug.cgi?id=38604">38604</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>std::string is too eager in convertibility-to-string_view checks
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ldionne@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20734" name="attach_20734" title="libc++-style test case">attachment 20734</a> <a href="attachment.cgi?id=20734&action=edit" title="libc++-style test case">[details]</a></span>
libc++-style test case
Since <a href="https://reviews.llvm.org/D48616">https://reviews.llvm.org/D48616</a>, 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>