Bug 17495 – __traits(getParameterStorageClasses) doesn't work with tuples as parameters

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-12T04:38:00Z
Last change time
2017-08-07T13:16:44Z
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2017-06-12T04:38:10Z
Fails to compile: void async(ARGS...)(ARGS) { static void compute(ARGS) { } auto x = __traits(getParameterStorageClasses, compute, 1); } alias test = async!(int, int); with a message about '1' being out of range
Comment #1 by bugzilla — 2017-06-12T04:44:00Z
Comment #2 by github-bugzilla — 2017-06-13T07:27:17Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bb9d0d02242e8b928b7f9c554d46675bc226312f fix Issue 17495 - __traits(getParameterStorageClasses) doesn't work with tuples as parameters https://github.com/dlang/dmd/commit/41131de8fd9fb76183e73f79293d91f678d66378 Merge pull request #6897 from WalterBright/fix17495 fix Issue 17495 - __traits(getParameterStorageClasses) doesn't work w… merged-on-behalf-of: Rainer Schuetze <[email protected]>
Comment #3 by github-bugzilla — 2017-08-07T13:16:44Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bb9d0d02242e8b928b7f9c554d46675bc226312f fix Issue 17495 - __traits(getParameterStorageClasses) doesn't work with tuples as parameters https://github.com/dlang/dmd/commit/41131de8fd9fb76183e73f79293d91f678d66378 Merge pull request #6897 from WalterBright/fix17495