https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63500
--- Comment #5 from François Dumont <fdumont at gcc dot gnu.org> --- I never understood why safe iterators operators are not simply calling respective operator on the underlying iterator. All operators are respecting this rule except the operator->. So I will try to use this rule and see if it fixes this issue.