https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105470
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, or use TheMapType::const_iterator. If you're going to name the type explicitly, you need to be sure to use the correct type.
redi at gcc dot gnu.org via Gcc-bugs Wed, 04 May 2022 01:07:23 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105470
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, or use TheMapType::const_iterator. If you're going to name the type explicitly, you need to be sure to use the correct type.