Bug 10357 – std.typecons.Nullable!(SysTime).Nullable.__ctor!() error instantiating

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-14T10:15:00Z
Last change time
2013-10-14T22:47:59Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
kroeplin.d
Depends on
9665

Comments

Comment #0 by kroeplin.d — 2013-06-14T10:15:10Z
With D 2.063, the following code does no longer compile: import std.datetime; import std.typecons; unittest { Nullable!SysTime time = SysTime(0); } The error message is: /src/phobos/std/typecons.d(1178): Error: mutable method std.datetime.SysTime.opAssign is not callable using a inout object Error: template instance std.typecons.Nullable!(SysTime).Nullable.__ctor!() error instantiating The fix for Issue 10268 doesn't help.
Comment #1 by Jesse.K.Phillips+D — 2013-07-15T13:13:48Z
(In reply to comment #0) > With D 2.063, the following code does no longer compile: > > import std.datetime; > import std.typecons; > > unittest > { > Nullable!SysTime time = SysTime(0); > } A work around is: unittest { Nullable!SysTime time; time = SysTime(0); }
Comment #2 by k.hara.pg — 2013-10-02T08:55:10Z
Comment #3 by github-bugzilla — 2013-10-10T15:07:06Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/55bc6fc1de30ab58b667c1a0e227f92208a0bece fix Issue 10357 - std.typecons.Nullable!(SysTime).Nullable.__ctor!() error instantiating Add a workaround until qualified postblit is properly implemented. https://github.com/D-Programming-Language/phobos/commit/e478ddef9e230c66f0d7992e5abf6151c4aea9e6 Merge pull request #1612 from 9rnsr/fix10357 [REG2.063] Issue 10357 - std.typecons.Nullable!(SysTime).Nullable.__ctor!() error instantiating
Comment #4 by github-bugzilla — 2013-10-14T22:45:34Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4844aef982cb8e33372ecd5b58530f0e70c2af72 Remove workaround for issue 10357 Because the root compiler issue 9665 has been fixed. https://github.com/D-Programming-Language/phobos/commit/cbd3983b597e7d5e77eb63568b046525712425e2 Merge pull request #1638 from 9rnsr/fix10357 Remove workaround for issue 10357
Comment #5 by github-bugzilla — 2013-10-14T22:47:59Z
Commit pushed to 2.064 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/0e688d03e6452accde51d359f1b2d629b99b31d5 Merge pull request #1638 from 9rnsr/fix10357 Remove workaround for issue 10357