<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/145667>145667</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`bugprone-nondeterministic-pointer-iteration-order` is only reported with libc++
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
firewave
</td>
</tr>
</table>
<pre>
```
#include <algorithm>
#include <vector>
void f()
{
std::vector<const S*> v;
std::sort(v.begin(), v.end());
}
```
```
<source>:6:23: error: unknown type name 'S' [clang-diagnostic-error]
6 | std::vector<const S*> v;
| ^
```
The warning is only shown when using libc++.
libstdc++: https://godbolt.org/z/543cGGnqq
libc++: https://godbolt.org/z/1Th935cvz
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUk91yqyAUhZ9me8Mkgxvx58ILkzZ9gPYFVHaVcwikgGbSpz9DkvZ02qsyjg5sPlyLBX0IerJELcgdyIesX-LsfPuqPZ37lbLBqUsLJb8_vAMU2o5mUcRA7HszOa_jfATx-KO40hidv1d4tzqt2CtgDdikkWoHvGOMsRAViA5E9wHsR2dDZM-AHYhHtoK4Tv2cF5yPgPW6HWjS9r4i7tm6Jas-us2Nguohvb86-NYV--AWP1ISKroSRIcCRMfI-ySmY4v9a93Zsng5EbP9kRhg9QxYMZC70fR22ijdT9aFqMfNDZMPd3Mlg2rPfmPz2j6gnw3k409DLzOxc--tthPTgTlrLizMSfR5JsuWkApGDyPgDnC3vVFGDyGq-1hyOsd4CkkkHgAPk1ODM3Hr_AR4eAc8yEKMT0_27e0G_4LMX-ZGyHF9z1QrVCOaPqM2rySvi6oqZDa3DdXj6yBzmYuyLHI-qlIOOTVFLmWupMh0ixwlL1HmXMhCbotG1TXWveSClzhIKDgde222xqzH9O9Mh7BQmxeyLKvM9AOZcD3oiLfYolYXQEwH37eJ2gzLFKDgRocY_q8TdTSUrsGwTCfvLG2ss4oi-aO2-hr7yWkbyW90JN9H7ezGeUUeSv4ZiKeT85EUO-s4f0kjW7xpv22gjvMybEd3BDwkGffP5uTdHxoj4OHqLaStvdlbW_wXAAD__6DjHP4">