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: [Patch] PR c++/26256


Hi,

2011/9/26 Jason Merrill <jason@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


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