https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101233
Bug ID: 101233 Summary: ICE when using ::ranges::v3::to<std::pmr::vector> Product: gcc Version: 11.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: 475647575 at qq dot com Target Milestone: --- Try the following code: -------- #include <vector> #include <range/v3/action.hpp> int main(){ std::vector<int> v{1,2,3,4,5}; v | ::ranges::v3::to<std::pmr::vector>; } -------- godbolt link:https://godbolt.org/z/oxnbad9M6