<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - constexpr: Read of object whose lifetime has ended"
href="https://llvm.org/bugs/show_bug.cgi?id=24597">bug 24597</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;">Resolution</td>
<td>INVALID
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - constexpr: Read of object whose lifetime has ended"
href="https://llvm.org/bugs/show_bug.cgi?id=24597#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - constexpr: Read of object whose lifetime has ended"
href="https://llvm.org/bugs/show_bug.cgi?id=24597">bug 24597</a>
from <span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span></b>
<pre>Hmm, I missed that your move constructor doesn't inherit the 'i' from its
argument. This is a bug: we're eliding the move-construction of the A temporary
within the return-statement of f(), but we're not properly lifetime-extending
the temporary, so it looks to us like 'i' refers to an object whose lifetime
has ended.
Fixed in r246263.</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>