This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c++/21802 (two-stage name lookup fails for operators)
- From: Michael Matz <matz at suse dot de>
- To: Patrick Palka <patrick at parcs dot ath dot cx>
- Cc: gcc-patches at gcc dot gnu dot org, jason at redhat dot com
- Date: Wed, 16 Dec 2015 20:25:53 +0100 (CET)
- Subject: Re: [PATCH] Fix PR c++/21802 (two-stage name lookup fails for operators)
- Authentication-results: sourceware.org; auth=none
- References: <566F29AB dot 5010106 at redhat dot com> <1450138442-25061-1-git-send-email-patrick at parcs dot ath dot cx>
Hi,
On Mon, 14 Dec 2015, Patrick Palka wrote:
> >>> >This should use cp_tree_operand_length.
> >> Hmm, I don't immediately see how I can use this function here. It
> >> expects a tree but I dont have an appropriate tree to give to it, only a
> >> tree_code.
> >
> > True. So let's introduce cp_tree_code_length next to cp_tree_operand_length.
> >
> > Jason
> >
> >
>
> Like this? Incremental diff followed by patch v4:
Not my turf, but if I may make a suggestion: please use the new function
in the old one instead of duplicating the implementation.
Ciao,
Michael.