Hi,

Jason Merrill <ja...@redhat.com> ha scritto:

>On 06/12/2013 11:58 AM, Paolo Carlini wrote:
>> -                 && TREE_CODE (TREE_TYPE (decl)) != REFERENCE_TYPE
>> +                 && TREE_CODE (type) != REFERENCE_TYPE
>
>This change is wrong; we specifically want to suppress the
>unused-but-set warning for reference variables.  Drop it and the patch
>is OK.

I understand the general issue, but I'm not sure we can't use 'type' here: we 
don't even consider emitting the unused-but-set warning when TREE_USED (decl) 
is false and in this case I don't call non_reference at the outset. I think ;)

Paolo

Reply via email to