Re: Don't drop attributes on template member functions

2013-10-03 Thread Jason Merrill
On 10/02/2013 06:19 PM, Easwaran Raman wrote: + chainon (prefix_attributes, attributes)); This should be reversed, so it's chainon (attributes, prefix_attributes); Otherwise the attributes for this decl would be applied to later decls with the same declspecs. OK with

Don't drop attributes on template member functions

2013-10-02 Thread Easwaran Raman
This attempts to address one issue reported in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33911 . Attributes at the end of a declaration of template member functions are discarded in cp_parser_init_declarator. The suggested workaround is to place the attributes into the declaration-specifiers. Th