https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98687
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- Another test case: void a(); namespace b { using ::a; } namespace c { template <class> void a(); template <typename d, typename e> void f(d, e) { using b::a; using c::a; } template <class g, class h, class e> void i(g j, h, e k) { f(j, k); } } // namespace c class l { double m() const; }; using c::i; double l::m() const { i(0, 0, int()); }