https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106320
Bug ID: 106320 Summary: [10 regression] build failure (due to view requirement changes?) Product: gcc Version: 10.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: h2+bugs at fsfe dot org Target Milestone: --- The following snippet builds on GCC10.3, GCC11.3, GCC12.1 and even MSVC 19.32. It no longer builds on GCC10.4. This might be related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 #include <ranges> #include <vector> int main() { auto l = std::views::transform([](auto v) { auto x = int{}; //!BROKEN - remove this capture and it will work return v | std::views::transform([x](auto v2) { return v2; }); }); std::vector<std::vector<int>> v{{5, 6, 7}}; v | l | std::views::join; }