<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/88532>88532</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Access violation at instantiating variable definition 'std::_Is_ranges_input_iter_v...'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alabuzhev
</td>
</tr>
</table>
<pre>
See the attached [Access_violation_Is_ranges_input_iter_v.zip](https://github.com/llvm/llvm-project/files/14960942/Access_violation_Is_ranges_input_iter_v.zip)
It works fine with this change (lines 354266-354267):
```DIFF
- numbered_iterator_t operator++(int) = delete;
- numbered_iterator_t operator--(int) = delete;
+ auto operator++(int) { auto Copy = *this; ++*this; return Copy; }
+ auto operator--(int) { auto Copy = *this; --*this; return Copy; }
```
I guess without postifx forms the type doesn't model `std::weakly_incrementable` properly, but it's probably not a reason to crash.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk9-OqzgMxp_G3FhFYMq_Cy7aUyHN9T4ACuCW7EkTlJh2O0-_gqqzOxczRyNFBDnO92GbnwpBXyxzA_kR8lOkFpmcb5RR_fI-8S3q3fho_mJGmRiViBomHhHy42EYOITupp1Rop3t3kLnlb1w6LSdF-m0sO9u8bueIT8BVZPIHCA7ALVA7UXLtPTx4K5ArTG317abvfubBwFqz9pwAGrTfV0k9Z6A2p-YUg3JCZLD8_kmeHf-d8Cztox3LRPKpAMO03odgSqjLQfM8j0VxW7bylUjO_xfBorkuU5vbfsM7dAu1549j5u7Euc7QTc_X4GO26q0FaAaITvhyIaFITu-BL5V2O2-vQ10RFSLuK8ty-Mz4ZebH5sE0GEtHrIjvpI_Ap5l8XbL3c7L01c-nz7sO4818c_6r85-mhpeFg5hm5dbBGcXRJ__wbPz17D9kvKYGUfHwQKVglc3skEokiDjOrrscGf12zw6bQfPV7aiesNQJDj7tQ7zAPqF_SKoBagMa7hXvXmgdYIKPavgLIrDwaswxdHYZGOd1SriJi1TqrMqzSiamjyhcaRK1f2ZirpUVKQqYcXDmWulKhXphhLaJ_uU0iKpcoqreijTtK4TTkrqOYd9wlelTbxiEDt_iXQICzdVlWcUGdWzCRumRJbvuB0C0UqtbzZ0-uUSYJ8YHST8pyJaDDdPcvCDHFSC2gZRVrQSbS94U16vzcGRz9rqLWltyauRX7EWx0BltHjT_JjwrYYV8a3GfwMAAP__fjNyVw">