c++: tweak PR105006 fix
authorJason Merrill <jason@redhat.com>
Wed, 23 Mar 2022 16:22:20 +0000 (12:22 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 23 Mar 2022 17:17:35 +0000 (13:17 -0400)
commite8cd3edc0fc6c02a732dcecf519c22d835e5f422
tree081daccac245403965fea15de3bdc84468653fc0
parent5e33fea21957c97d63e3738be6056ae2a94e3284
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.
gcc/cp/name-lookup.cc