https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91788
--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #2) > I think we can do that more generically. Does this look right? lgtm > (The downside would be that many more functions might need to be > friends to access _M_index). You can always make in public instead, or give it a public accessor... (not commenting on the rest, I haven't studied the implementation enough)