[Bug c++/5458] address of overloaded template function as argument for template
rodolfo at rodsoft dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 6 14:19:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list