<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/130846>130846</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang][Sema] Dubious temporary expression constructing `CXXThisScopeRAII`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
chenm16
</td>
</tr>
</table>
<pre>
In
https://github.com/llvm/llvm-project/blob/8c97ddff53180236617458368f6179c0fac1ad93/clang/lib/Sema/SemaTemplate.cpp#L5847-L5850
The `CXXThisScopeRAII` temporary is destroyed at the end of the expression. Is it meant to be a variable definition?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUkrtu2zAYhZ-GWogIvOoyaHBiCDCQqfGQlZdfEguKFEjKqN--sOoiXTpk-rmcA5zvo8rZzQFgQPIVyXOl9rLENJgFwkqbSkd7Hy4BkdNSypYRPyE2IjbOriy7rk1cERu9v_09L1uKP8EUxEbto0Zs7EzfWjtNktOOMN40tBWy4003NbTtDZmUocr2HLHReBXmR5F7BD9gVc9zhXXzqkBttg0x_i470b68y04SRE7XBTBqyNvn53Vx-cPEDX6cLhfUEFxg3WJS6Y5dxhZySfEOFquCywIYgsVx-vP8tSXI2cVQ40vGruAVVCi4RKwBK3xTySntAVuYXHDFxYD4WNmB2573qoKBtoK2rJeEVMsgmGRAecsEAd1qQUFo3lIygSB6MqJyAyNMEk4po0ISUnMD3HRNxybb9EQRJAisyvn6AbWOaa5czjsMlJNONJVXGnw-nDH2xMYe-tJwWND7nJEg3uWSvyqKK_4Q_XYk5BnJ14OyPOPzrl3c8z_IvphgE0MuaTfFhfk_rKs9-eHbf-QYlREbn7tuA_sdAAD__9o_0G4">