On 04/10/2017 09:22 AM, Jakub Jelinek wrote:
and there I see COMPONENT_REF with BASELINK second operand with BASELINK_FUNCTIONS being an overload only for the methods. And even if I try overload with mixed methods and static member functions, lvalue_kind with that is only called when seeing the invalid binding to method:
struct X { void o(unsigned char); static void o(int); void o(double); } x; void (&r12)(int) = x.o; void (&r13)(double) = x.o;
Ok, that makes sense. This patch is ok, with ...
+ /* For static member function recurse on the BASELINK. */
Mention that overloads of more than one function go via a different path. nathan -- Nathan Sidwell