https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102228
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The odd thing is of course that name lookup must already have found MEMBER and thus visited the path to it. It would just need to record that :/