← Back to index
|
Original Bugzilla link
Bug 10052 – Tuple not assignable in shared static module constructor
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-09T13:32:12Z
Last change time
2024-12-13T18:06:49Z
Assigned to
No Owner
Creator
Tommi
Moved to GitHub: dmd#18579 →
Comments
Comment #0
by tommitissari — 2013-05-09T13:32:12Z
module main; import std.typecons; shared static Tuple!(int, int) ints; shared static this() { ints[0] = 4; // #1: OK ints[1] = 6; // #2: OK ints = tuple(4, 6); // #3 } // #3: // Error: template std.typecons.Tuple!(int, int).Tuple.opAssign // does not match any function template declaration. Candidates are: // /usr/share/dmd/src/phobos/std/typecons.d(483): std.typecons. // Tuple!(int, int).Tuple.opAssign(R)(R rhs) if (isTuple!(R) && allSatisfy!(isAssignable, Types)) // Error: template std.typecons.Tuple!(int, int).Tuple.opAssign(R)(R rhs) // if (isTuple!(R) && allSatisfy!(isAssignable, Types)) cannot deduce // template function from argument types !()(Tuple!(int, int)) void main() {}
Comment #1
by robert.schadek — 2024-12-13T18:06:49Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/18579
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB