On 01/06/2013 07:24 PM, Philippe Sigaud wrote: > > Can attributes be defined by templates arguments? > > > @(T) class C(T) : T { } > > Answer: no. OK. This works: template C(T){ @T class C : T { } } The above appears to annotate the template itself, which is inconsistent. You should probably file a bug report.