Clangd-VSCode server crashes when processing std::ranges::count_if
Description Clangd crashes consistently in VSCode when trying to parse a file containing the following line of code: return (wide ? wide_ulen(str) : std::ranges::count_if(str, [](char c) { return (static_cast<unsigned char>(c) & 0xC0) != 0x80; })); This line is intended to count characters in a UTF-8 string, excluding continuation bytes. The crash occurs irrespective of the […]