[patch c++]: Fix for PR c++/51344 - cc1plus hangs when compiling

Kai Tietz ktietz70@googlemail.com
Wed Jan 18 08:29:00 GMT 2012


2012/1/17 Jason Merrill <jason@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



More information about the Gcc-patches mailing list