https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101606
Bug ID: 101606 Summary: std::sort generates different function for __gnu_cxx::__normal_iterator<int*,C> and int* Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- GCC generates more instructions for vector iterator and int* https://godbolt.org/z/GYGszqsG3 https://godbolt.org/z/oz98vTd94 https://godbolt.org/z/nzTTTz38P I guess this breaks lto that can merge these two functions???