[cfe-dev] Template attributes lose their inherited flag on instantiations

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Apr 16 06:31:22 PDT 2013

On 16 April 2013 03:59, Nico Rieck <nico.rieck at gmail.com> wrote:
> Hi,
> I noticed that when a template is instanciated and all attributes are pulled
> over (using sema::instantiateTemplateAttribute), inheritable attributes lose
> their inherited flag. Is this a bug/an oversight or intended behavior?
> In my case the inherited status is used to distinguish between
> DLLImportAttr/DLLExportAttr applied directly to class members and inherited
> from the class. When those attributes are applied to a class template, and
> in turn applied to class members with the inherited flag set, this
> distinction is lost for the members of the template instantiation.

Don't we apply dllexport only to variables and functions? How are you
applying it to classes?


More information about the cfe-dev mailing list