Community
Participate
Working Groups
The following code: template <typename T> int foo(T t) { return bar(t); } namespace N { class A {}; int bar(N::A); // WARNING: Unused declaration of function 'bar' } int main() { foo(N::A()); } produces a warning at the indicated location. This warning is a false positive, as the code does use bar(). bar() found by argument-dependent lookup during the instantiation of foo() with T = N::A.