[PATCH,c++] convert cp_parser.unparsed_function_queues &co. to VECs

Nathan Froyd froydnj@codesourcery.com
Tue Jun 8 21:44:00 GMT 2010


On Tue, Jun 08, 2010 at 11:57:40AM -0400, Jason Merrill wrote:
> On 06/07/2010 02:14 PM, Nathan Froyd wrote:
>> +typedef struct GTY(()) cp_default_arg_entry_d {
>> +  /* The current_class_type when we parsed this arg.  */
>> +  tree class_type;
>> +
>> +  /* The function decl itself.  */
>> +  tree decl;
>> +} cp_default_arg_entry;
>
> I don't think we need to store the class type, we can get it from the  
> decl itself, i.e.
>
> ctype = DECL_FUNCTION_MEMBER_P (decl) ? DECL_CONTEXT (decl) :  
> DECL_FRIEND_CONTEXT (decl)

Thanks for pointing that out.  I'll change things to use that and
retest.

-Nathan



More information about the Gcc-patches mailing list