https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86015 --- Comment #2 from Josh Marshall <joshua.r.marshall.1991 at gmail dot com> --- There are also lines close by which call std::distance() which need to be similarly wrapped.