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)
Comment #1 by k.hara.pg — 2011-12-13T07:31:32Z
Comment #2 by github-bugzilla — 2012-09-25T01:28:49Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3f0ccbaa3daa47a0b4a18b1ae2d55871e5e41a1e Issue 6873 - Multiple storage class is not allowed on template argument https://github.com/D-Programming-Language/dmd/commit/ec3e3300949b5aef30c7a71a0287a77135739144 Merge pull request #556 from 9rnsr/fix3091 Issue 3091 & 6873 - Make "StorageClasses Type" syntax available in some where
Comment #3 by k.hara.pg — 2012-09-25T06:43:16Z