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

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed Aug 18 12:58:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-08-18 12:58 -------
PR 17071 has this very nice and clean testcase.  
-------------- 
int foo (int); 
template <class T> T foo (T, T); 
 
template <class T, class U> int bar (T, U); 
 
int main () 
{ 
    bar (0, &foo); 
} 
--------------------- 
 
W.  

-- 


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



More information about the Gcc-bugs mailing list