This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix ICE in C++ lookup_name_fuzzy (PR c++/77549)
- From: Jason Merrill <jason at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: David Malcolm <dmalcolm at redhat dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 13 Sep 2016 23:46:52 -0400
- Subject: Re: [C++ PATCH] Fix ICE in C++ lookup_name_fuzzy (PR c++/77549)
- Authentication-results: sourceware.org; auth=none
- References: <20160913192618.GL7282@tucnak.redhat.com>
On Tue, Sep 13, 2016 at 3:26 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> for (tree t = lvl->names; t; t = TREE_CHAIN (t))
> {
> + /* OVERLOADs or decls from using declaration are wrapped into
> + TREE_LIST. */
> + if (TREE_CODE (t) == TREE_LIST)
> + {
> + t = TREE_VALUE (t);
> + t = OVL_CURRENT (t);
> + }
Don't we want the loop increment to take the TREE_CHAIN of the
TREE_LIST element, rather than its TREE_VALUE?
Jason