C++ PATCH for c++/53756 (-g and C++1y auto)

Paolo Carlini paolo.carlini@oracle.com
Wed Jan 29 16:48:00 GMT 2014


On 01/29/2014 05:42 PM, Jason Merrill wrote:
> On 01/28/2014 04:35 PM, Paolo Carlini wrote:
>> +      if (is_cxx ())
>> +    {
>> +      tree name = TYPE_NAME (type);
>> +      if (TREE_CODE (name) == TYPE_DECL)
>> +        name = DECL_NAME (name);
>> +      if (name == get_identifier ("auto"))
>> +        return 0;
>
> Rather than duplicate this code, let's factor it out into a separate 
> function.
Yeah, you are totally right, we have at least 3/4 uses of that. Care to 
propose a name?
> Also, your ChangeLog has nothing to do with the patch.  :)
:) I attached 58581 instead of 58561.

Paolo.



More information about the Gcc-patches mailing list