← Back to index
|
Original Bugzilla link
Bug 17506 – [REG2.075] @disable constructor requires members to be initialized
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-15T00:22:00Z
Last change time
2017-08-07T13:16:49Z
Assigned to
nobody
Creator
greensunny12
Comments
Comment #0
by greensunny12 — 2017-06-15T00:22:39Z
cat > main.d << CODE struct TreeMap { this() @disable; this(TTree tree) { this.tree = tree; } TTree tree; } struct TTree { this() @disable; this(int foo) {} ~this() {} } void main() { auto k = TreeMap(TTree(1)); } CODE $ main.d treemap.d(3): Error: field tree must be initialized in constructor
Comment #1
by github-bugzilla — 2017-06-17T10:16:18Z
Commit pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/558773e64d42d56ad02970adfdc1371311ca3291
add test cases for existing production code - fixes Issues 17494, 17505, 17506
Comment #2
by github-bugzilla — 2017-08-07T13:16:49Z
Commit pushed to newCTFE at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/558773e64d42d56ad02970adfdc1371311ca3291
add test cases for existing production code