<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:dibeas@ieee.org" title="David Rodríguez <dibeas@ieee.org>"> <span class="fn">David Rodríguez</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Assign rvalue to self"
href="http://llvm.org/bugs/show_bug.cgi?id=16993">bug 16993</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>REOPENED
</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 - Assign rvalue to self"
href="http://llvm.org/bugs/show_bug.cgi?id=16993#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Assign rvalue to self"
href="http://llvm.org/bugs/show_bug.cgi?id=16993">bug 16993</a>
from <span class="vcard"><a class="email" href="mailto:dibeas@ieee.org" title="David Rodríguez <dibeas@ieee.org>"> <span class="fn">David Rodríguez</span></a>
</span></b>
<pre>Sorry for the confusion, I did not take into account 17.6.4.9/1, bullet 3:
- If a function argument binds to an rvalue reference parameter, the
implementation may assume that this parameter is a unique reference to this
argument.
The program calling 'a = std::move(a)' is violating the requirements placed on
programs in the standard and the behavior of the library is not guaranteed. It
could even 'assert' if it wants to.</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>