<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:hstong@ca.ibm.com" title="hstong@ca.ibm.com">hstong@ca.ibm.com</a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Lambda call operator invoked if streamed to std::cout"
href="https://bugs.llvm.org/show_bug.cgi?id=39911">bug 39911</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Lambda call operator invoked if streamed to std::cout"
href="https://bugs.llvm.org/show_bug.cgi?id=39911#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Lambda call operator invoked if streamed to std::cout"
href="https://bugs.llvm.org/show_bug.cgi?id=39911">bug 39911</a>
from <span class="vcard"><a class="email" href="mailto:hstong@ca.ibm.com" title="hstong@ca.ibm.com">hstong@ca.ibm.com</a>
</span></b>
<pre><span class="quote">> The code works as expected with gcc and msvc, so I guess it's a clang problem.</span >
ICC and MSVC behave the same as Clang here:
ICC: <a href="https://godbolt.org/z/nncyHU">https://godbolt.org/z/nncyHU</a>
MSVC: <a href="https://godbolt.org/z/U7k7zj">https://godbolt.org/z/U7k7zj</a>
GCC behaves the same if the lambda parameter is declared as `auto &` to better
match the function-to-pointer parameter types:
<a href="https://godbolt.org/z/WQ5mvq">https://godbolt.org/z/WQ5mvq</a></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>