[PATCH] PR c++/54372 - unused attribute inactive on dependant entities

Jason Merrill jason@redhat.com
Mon Sep 24 20:11:00 GMT 2012


On 09/20/2012 10:01 AM, Dodji Seketeli wrote:
> This is because in cplus_decl_attributes, save_template_attributes
> makes so that the 'unused' attribute is applied to its appertaining
> entity only at instantiation time.  But then at parsing time
> maybe_warn_unused_local_typedefs checks for TREE_USED before warning.

I guess we should propagate TREE_USED when instantiating a typedef.

Jason



More information about the Gcc-patches mailing list