← Back to index
|
Original Bugzilla link
Bug 14253 – [REG2.067b3] std.traits.ParameterStorageClassTuple gives compiler errors when encountering 'return' functions
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-07T06:48:00Z
Last change time
2017-07-19T17:42:35Z
Assigned to
nobody
Creator
opantm2+dbugs
Comments
Comment #0
by opantm2+dbugs — 2015-03-07T06:48:05Z
Code: import std.traits; struct Foo { ref Foo opAssign(ref Foo rhs) return { return this; } } void main() { alias tup = ParameterStorageClassTuple!(__traits(getOverloads, Foo, "opAssign")[0]); } Output: /Users/kapps/dev/dmd/phobos/std/traits.d(221): Error: key 'j' not found in associative array ['a':cast(FunctionAttribute)1u, 'b':cast(FunctionAttribute)2u, 'c':cast(FunctionAttribute)4u, 'd':cast(FunctionAttribute)8u, 'e':cast(FunctionAttribute)16u, 'f':cast(FunctionAttribute)32u, 'i':cast(FunctionAttribute)64u] /Users/kapps/dev/dmd/phobos/std/traits.d(970): called from here: demangleFunctionAttributes("NcNjKS4test3FooZS4test3Foo") /Users/kapps/dev/dmd/phobos/std/traits.d(993): while looking for match for demangleNextParameter!(__error) /Users/kapps/test.d(8): Error: template instance std.traits.ParameterStorageClassTuple!(opAssign) error instantiating
Comment #1
by opantm2+dbugs — 2015-03-07T21:24:10Z
Other std.traits functions will likely have to be updated to include 'return' as well, such as functionAttributes.
Comment #2
by bugzilla — 2015-03-11T23:46:16Z
https://github.com/D-Programming-Language/dmd/pull/4486
https://github.com/D-Programming-Language/phobos/pull/3050
Comment #3
by github-bugzilla — 2015-03-14T13:30:05Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/4f8125fb6d2ffe1bd87f3d34d19ab85ec5d6d05b
fix Issue 14253 - [REG2.067b3] std.traits.ParameterStorageClassTuple gives compiler errors when encountering 'return' functions
https://github.com/D-Programming-Language/phobos/commit/40cd3b513198bd169c06bd6364f4ebfdd3bc0aa5
Merge pull request #3050 from WalterBright/fix14253 fix Issue 14253 - [REG2.067b3] std.traits.ParameterStorageClassTuple giv...
Comment #4
by github-bugzilla — 2015-03-14T13:30:32Z
Commit pushed to 2.067 at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/0189a6334a57f310bd6fa0faab4530c4a1107395
Merge pull request #3050 from WalterBright/fix14253 fix Issue 14253 - [REG2.067b3] std.traits.ParameterStorageClassTuple giv...
Comment #5
by github-bugzilla — 2015-04-11T12:25:03Z
Commit pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/0189a6334a57f310bd6fa0faab4530c4a1107395
Merge pull request #3050 from WalterBright/fix14253
Comment #6
by github-bugzilla — 2017-07-19T17:42:35Z
Commits pushed to dmd-cxx at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/4f8125fb6d2ffe1bd87f3d34d19ab85ec5d6d05b
fix Issue 14253 - [REG2.067b3] std.traits.ParameterStorageClassTuple gives compiler errors when encountering 'return' functions
https://github.com/dlang/phobos/commit/40cd3b513198bd169c06bd6364f4ebfdd3bc0aa5
Merge pull request #3050 from WalterBright/fix14253