void main() { template A(alias a) { enum A = a.stringof; } int b; string s = A!b; // Error: template instance A!(b) cannot use local 'b' as parameter to non-global template A(alias a) } Bug or feature?