This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Fix ICE in C++ lookup_name_fuzzy (PR c++/77549)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]