On Nov 12, 2007 10:17 PM, Ollie Wild wrote: > > It might help if I attached the patch. It's been a couple weeks since I sent this out, so here's a quick ping. Details reproduced below: Section 5.10 of the C++ standard states: "In addition, pointers to members can be compared, or a pointer to member and a null pointer constant. Pointer to member conversions (4.11) and qualification conversions (4.4) are performed to bring them to a common type." The C++ front end fails to perform the indicated conversions when comparing pointers to member functions. This patch rectifies this. Tested with a C/C++/Java bootstrap and testsuite on i686-pc-linux-gnu. Ollie :ADDPATCH c++: 2007-11-12 Ollie Wild * typeck.c (build_binary_op): Add conversion of pointers to member functions appearing as operands to the equality operators. 2007-11-12 Ollie Wild * g++.dg/conversion/ptrmem9.C: New test.