← Back to index
|
Original Bugzilla link
Bug 14496 – void initialization of member with indirections must not be @safe
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-24T17:12:00Z
Last change time
2017-08-02T08:07:19Z
Keywords
accepts-invalid, pull, safe
Assigned to
nobody
Creator
schuetzm
Comments
Comment #0
by schuetzm — 2015-04-24T17:12:24Z
This should not compile: struct Foo { int* indirection1; Object indirection2; string[] indirection3; } struct Bar { Foo foo = void; } struct Baz { int* x = void; } @safe void main() { Bar bar; Baz baz; } Found by Justin Whear:
https://github.com/D-Programming-Language/phobos/pull/3213#issuecomment-95982584
Comment #1
by bugzilla — 2016-06-12T10:21:23Z
https://github.com/dlang/dmd/pull/5861
Comment #2
by github-bugzilla — 2016-06-16T21:43:14Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/fdfa834382f0fbd1486bd261df042e589dc29676
fix Issue 14496 - void initialization of member with indirections must not be @safe
https://github.com/dlang/dmd/commit/3309b7adbb86b26240fcf473a3c6a57315304eec
Merge pull request #5861 from WalterBright/fix14496 fix Issue 14496 - void initialization of member with indirections mus…
Comment #3
by github-bugzilla — 2016-10-01T11:47:43Z
Commits pushed to stable at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/fdfa834382f0fbd1486bd261df042e589dc29676
fix Issue 14496 - void initialization of member with indirections must not be @safe
https://github.com/dlang/dmd/commit/3309b7adbb86b26240fcf473a3c6a57315304eec
Merge pull request #5861 from WalterBright/fix14496
Comment #4
by github-bugzilla — 2017-08-02T08:07:19Z
Commit pushed to dmd-cxx at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/79490fb8a82af31996bfeb5ea8ddd9aac4303a2e
Issue 14496 - void initialization of member with indirections must not be @safe