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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-01 
16:42:42 UTC ---
yes, the C++ standard is very clear about this:

A pointer to member is only formed when an explicit & is used and its operand
is a qualified-id not enclosed in parentheses. [ Note: that is, the expression
&(qualified-id), where the qualified-id is enclosed in parentheses, does not
form an expression of type “pointer to member.” Neither does qualified-id,
because there is no implicit conversion from a qualified-id for a non-static
member function to the type “pointer to member function” as there is from an
lvalue of function type to the type “pointer to function” (4.3). Nor is
&unqualified-id a pointer to member, even within the scope of the
unqualified-id’s class. —end note ]

Reply via email to