<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Also +Hans for the question about the release.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">cfe-dev <cfe-dev-bounces@lists.llvm.org> on behalf of cfe-dev <cfe-dev@lists.llvm.org><br>
<b>Reply-To: </b>David Blaikie <dblaikie@gmail.com><br>
<b>Date: </b>Wednesday, March 4, 2020 at 1:33 PM<br>
<b>To: </b>"Robinson, Paul" <paul.robinson@sony.com>, Richard Smith <richard@metafoo.co.uk><br>
<b>Cc: </b>cfe-dev <cfe-dev@lists.llvm.org><br>
<b>Subject: </b>Re: [cfe-dev] Q on patch for CWG 2352<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><a href="mailto:richard@metafoo.co.uk">+Richard Smith</a> for visibility.<br>
<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, Mar 4, 2020 at 12:56 PM Robinson, Paul via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Richard Smith made a patch in f041e9ad for CWG2352.<br>
As a consequence of this patch, we had an obscure test failure,<br>
and it's not clear to me that it's an intentional consequence.<br>
So I figured I'd ask here.<br>
<br>
Reduced test case:<br>
<br>
bool foo(void * const * const * &&) { return false; }<br>
bool foo(void * * const * const &) { return true; }<br>
bool bar() {<br>
return foo(reinterpret_cast<void***>(2));<br>
}<br>
<br>
Prior to the patch, the compiler selected the second overload;<br>
after the patch, it selects the first overload. Apparently there's<br>
some subtle difference in the preferred-ness of one over the other,<br>
and AFAICT the const-nesses aren't supposed to factor in any more?<br>
so it's about the &-ref versus the &&-ref?<br>
<br>
As I said, mainly I want to make sure this was intentional; if it<br>
is, we can fiddle our test and that's the end of it. But if it's<br>
not intentional, this change is in the almost-final Clang 10.0<br>
release, and might want to be fixed before it goes out.<br>
<br>
Thanks,<br>
--paulr<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_cfe-2Ddev&d=DwMFaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=IBW1MEu-Sx7haLmkx4JDCGG9wdGyY__f9L2GIlMtCqE&s=RKyV-TNDn011xSxc2o5by_ycuAC7pkTH_uEJBUChqCE&e=" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>