https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- Also you're doing a reinterpret_cast from an arbitrary iterator type, which is not necessarily a pointer, or even a random access iterator. Since you don't have a copyright assignment in place please leave the patch to us, this is less than helpful :-)