This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch ping
- From: Nathan Sidwell <nathan at acm dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 10 Apr 2017 10:38:58 -0400
- Subject: Re: Patch ping
- Authentication-results: sourceware.org; auth=none
- References: <20170410121835.GD1809@tucnak> <adbafec1-9123-5062-1b15-18a647eb379e@acm.org> <20170410132234.GE1809@tucnak>
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