On Tue, Sep 13, 2016 at 3:26 PM, Jakub Jelinek <ja...@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