<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/138890>138890</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
-Wconsumed is ignored on destructors
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
apache-hb
</td>
</tr>
</table>
<pre>
In [this example](https://godbolt.org/z/o54sjPjGs) the destructor is marked `[[clang::callable_when(consumed)]]`, and the constructor is marked with `[[clang::return_typestate(unconsumed)]]`. Despite this there is no warning issued when the destructor is reached on an unconsumed instance of `IplTag`
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsks2O3CoQhZ8Gb1C3cPl_wWL6tnw1uywiZTkCUzZ0MFiApzN5-gjPSC0lvfLCqu87pygRo1kcIifNhTTXQuxJ-8DFJiaNJy0L6dUHf3WUNJekTaT4S6ybRdJcCfQ6pS2S6oXASGBcvJLeprMPC4HxN4HRN3W8fbv9HwkMNGmkCmMK-5R8oCbSVYSfqChp2WG_TFa4JeOql0lYK6TFt7tGR6CfvIv7iorAkNXNNQ_Bf1Q4dYDz_3_Jd5P0U3zAtAf3lj42jEkkJNDv7pnjTK8YN5OQHu2TxoBZ4Dy9i-CMW6iJcc8uje5Jx4B5k4p6R4WjDwk1LibhJqR-zhFfN_tdLKRlheKVGqpBFMjLrm7big1QFZrPTLUdoJyUYqyde2RtDXU1CGwrrDooDAcGDWtYVzZlUw7nScqZsborZ9YNsyxJzXAVxp6tfV_zMxVHdl5WfT-wwgqJNh6XAODw_tmMAOTDCDwPneS-RFIza2KKD0wyySI__XiUi9QszofP4o-NxGIPlv91NibpXZ4nvxIYM_Lrc9qCv-GUCIxHkEhg_Er6zuFPAAAA__91WONA">