Bug 6873 – Multiple storage class is not allowed on template argument
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-11-01T06:29:00Z
Last change time
2013-01-23T10:44:08Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2011-11-01T06:29:58Z
Code:
----
template Test(T)
{
pragma(msg, T);
}
alias Test!(const shared int) X;
Output:
----
test.d(5): found 'const' when expecting '('
test.d(5): (arguments) expected following shared(int)
test.d(5): found 'X' when expecting ')' following template argument list
test.d(5): no identifier for declarator Test!(shared(int)