Open
Description
#include <algorithm>
#include <vector>
struct S;
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