https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105006
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:e8cd3edc0fc6c02a732dcecf519c22d835e5f422 commit r12-7788-ge8cd3edc0fc6c02a732dcecf519c22d835e5f422 Author: Jason Merrill <ja...@redhat.com> Date: Wed Mar 23 12:22:20 2022 -0400 c++: tweak PR105006 fix Checking dependent_type_p avoids needing to walk the overloads in cases where it would not be possible to find a dependent using. PR c++/105006 gcc/cp/ChangeLog: * name-lookup.cc (lookup_using_decl): Check that scope is a dependent type before looking for dependent using.