https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91678
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Marek, are you still working on the patch? Does it also fix the testcase from PR 92766? template<typename T> void foo(T&& begin, T&& end); void test() { unsigned char buffer[16]; const unsigned char* ptr = buffer; foo(ptr+0, ptr+8); }