------- Comment #5 from rguenth at gcc dot gnu dot org 2005-10-06 21:41 ------- I have seen this issue one time and the solution is to cast the argument to memfun to the appropriate type - f.i. the const member function, or to specify the template parameters to memfun. In case you have both const and non-const member functions you'll have an ambiguous match otherwise.
This really is invalid. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24243