https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122192
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- A typename-specifier is a type-only context under https://eel.is/c++draft/temp.res.general#4.1 and so we should only find type names under https://eel.is/c++draft/basic.lookup.general#4 , so the patch for PR107773 seems wrong. The original testcase for 107773 is about a declaration in a derived class hiding a declaration in a base class, not type-only lookup.
