The following code doesn't compile under gcc-4.2.1 on i686-pc-linux-gnu: template <class T> void foo(T); void foo(int); void bar() { &foo; } According to the discussion that began on thread http://gcc.gnu.org/ml/gcc/2007-07/msg00663.html, then resumed on thread http://gcc.gnu.org/ml/gcc/2007-07/msg00946.html, the compiler should accept the code as valid, returning the address of 'void foo(int)'.
*** This bug has been marked as a duplicate of 5458 ***