[forwarded from http://bugs.debian.org/222497] diagnostic seen with g++-3.[234], not with g++-2.95 The program below doesn't compile. If you change "isalnum" in ptr_fun to "isal", it compiles just fine, though. -- CUT HERE -- #include <iostream> #include <string> #include <algorithm> #include <functional> #include <cctype> using namespace std; int isal(int c) { return isalnum(c); } int main(int argc, char **argv) { string component(argv[1]); if (find_if(component.begin(), component.end(), ptr_fun(isalnum)) != component.end()) { cerr << "Error\n"; return -1; } } -- CUT HERE --
This is a dup of bug 5458. (even though their testcases are different, I can reduce it to the same problem). *** This bug has been marked as a duplicate of 5458 ***