https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66439
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-02-03 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail| |5.4.0, 6.3.0, 7.3.0, 8.2.0, | |9.0 --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed. The output is the same in GCC 9.0: pr66439.C: In function ‘void g(A::B)’: pr66439.C:12:12: error: no matching function for call to ‘f<3>(A::B&)’ 12 | C::f<3>(b); //ill-formed; argument dependent lookup | ^ pr66439.C:6:26: note: candidate: ‘template<class T> void C::f(T)’ 6 | template<class T> void f(T t); | ^ pr66439.C:6:26: note: template argument deduction/substitution failed: