[C++ Patch / RFC] PR 50870

Paolo Carlini paolo.carlini@oracle.com
Thu Oct 27 00:01:00 GMT 2011

On 10/27/2011 12:48 AM, Jason Merrill wrote:
> On 10/26/2011 06:20 PM, Paolo Carlini wrote:
>> I re-opened this one because: 1- We may want to fix it in 4_6-branch
>> too, it's a regression there too; 2- We are still handling incorrectly
>> the template impl case. For the latter a variant of my old idea still
>> works, fwiw.
>> -    object_type = TREE_TYPE (object);
>> +    object_type = (TREE_CODE (object) == ARROW_EXPR
>> +               ? TREE_OPERAND (object, 0) : TREE_TYPE (object));
> This is still wrong.  Why not use the same patch for 4.6 as for trunk?
I don't understand, sorry: both mainline and 4_6-branch do not handle 
correctly both testcases, template impl and not. If you want to look 
into it personally, I can unassign myself, no problem, really.


More information about the Gcc-patches mailing list