[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/5458] address of overloaded template function as argument for template




------- Comment #12 from rodolfo at rodsoft dot org  2007-08-06 14:18 -------
This is an yet simpler case where this bug shows up:

template <class T> void foo(T);
void foo(int);

void bar()
{
    &foo;
}

i686-pc-linux-gnu-g++-4.2.1 fails with:

teste.cpp: In function ?void bar()?:
teste.cpp:6: error: statement cannot resolve address of overloaded function


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5458

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



Reply to: