Hi, 2011/9/26 Jason Merrill <ja...@redhat.com>: > On 09/25/2011 05:06 PM, Fabien Chêne wrote: >> >> + else if ((using_decl = strip_using_decl (member)) != member) > >> + /* If it is a using decl, use its underlying decl. */ >> + type_decl = strip_using_decl (type_decl); > >> - if (DECL_NAME (field) == name >> + if (DECL_NAME (decl) == name >> && (!want_type >> - || TREE_CODE (field) == TYPE_DECL >> - || DECL_CLASS_TEMPLATE_P (field))) >> - return field; >> + || TREE_CODE (decl) == TYPE_DECL >> + || DECL_CLASS_TEMPLATE_P (decl))) >> + return decl; > > Why do we need to strip the USING_DECL both in lookup_field_1 and in > callers?
Sorry but I've failed to see why you called them callers of lookup_field_1, could you elaborate ? -- Fabien