<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/112234>112234</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
No dangling assignment involving lifetimebound argument
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:diagnostics,
clang:memory-safety
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
usx95
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/WozfPj547
```cpp
int foo(const int &x [[clang::lifetimebound]]);
void usage() {
int y = foo(1); // Warning. Good.
y = foo(1); // No warning. Bad.
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8UsuO4yAQ_Jr2BY1lGj_iA4dkLe9ttLc58wphhCEyODuZr1-Rh3Z2Diu1QHRTXaquFik5G4zh0B2gmyqx5VNc-ZY-xq6SUV_5KedzArYHnAFnG7WMPtdxtYDzJ-D8Fj-Pv967doBmgmb_OPvmHup8vmdcyOQYI-BOxZAyKW_A_oPciA_Ki2ALC9t7dzTZLUbGLWjophI4Ajt8JbhEp8mWhDWAO8CRwPCok1vrKwE2PQjpHU7uCsibWIMLtiY_Y9T1E_QfwGskv5-Yg3hCYJi-aa00Z3pko6gMpwPuRmR9Q6sTp73sGtn2TDGGWnUGj1SaQY1qGDvJZOU4NtjShra0Zwxpjcw0SomRGiV2WkloG7MI52vvL0sZfuVS2gynFJG1lRfS-HTzEPE5Su2EDTFlpxIgAv74UlvMEtfrSxJHk6-l2k3VykvzF7nZBG3jXcrpL1122Rv-GokWwXoXLLlvzmJC8fIS_aUk__GOiNVu5UO1rf77Hrl82mSt4gI4F5bH9XJe47tRGXC-KUyA80PkheOfAAAA__9NZc1C">