https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92338
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> --- Can you please stop changing the status to FIXED. That means a bug in GCC was fixed. Since nothing in GCC changed, nothing has been fixed. I think all compilers are trying to convert the object to std::ptrdiff_t, which is long or long long depending on the platform.