https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102807
Bug ID: 102807 Summary: Simple code using ranges::views::keys does not compile with clang Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: zeratul976 at hotmail dot com Target Milestone: --- Created attachment 51620 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51620&action=edit Output of `clang++ -c -std=c++20 -ftemplate-backtrace-limit=0 ` The following simple code using ranges::views::keys compiles with gcc 11.1, but not with clang (tested with clang trunk, and libstdc++ from 11.1). #include <ranges> #include <unordered_map> int main() { std::unordered_map<int, int> m; m | std::ranges::views::keys; } I've attached the complete error output. I'm not sure if this is a bug in clang or libstdc++, but I thought I'd start here.