Issue 145667
Summary `bugprone-nondeterministic-pointer-iteration-order` is only reported with libc++
Labels clang-tidy
Assignees
Reporter firewave
    ```
#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
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to