2012/1/17 Jason Merrill <ja...@redhat.com>:
> On 01/17/2012 02:41 PM, Kai Tietz wrote:
>>
>> Right, but in second call we get for cplus_decl_attributes's
>> late_attrs (as result of splice_template_attributes) the same value as
>> already stored in decl_p's attributes.
>
>
> Right, but why is it already stored there?
>
> Jason

The approach to disable cplus_decl_attributes call in do_friend (as we
assume that prior grok* function it is calling it already) doesn't
work.
Eg the tests in g++.dg/ext/attribute-test-[34].C are failing for
c++11.  do_friend is called here via grokdeclarator for 'fTest' (test
3) and the attributes weren't applied before.  So removing here in
do_friend the call of cplus_decl_attributes seems wrong.
With my orginal patch those tests are passing.

Regards,
Kai

Reply via email to