← Back to index
|
Original Bugzilla link
Bug 10834 – cannot use cast(void)expr if the type of expr is a struct
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-16T17:52:00Z
Last change time
2013-08-16T20:44:39Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
henning
Comments
Comment #0
by henning — 2013-08-16T17:52:39Z
void main() { struct S { int i; } S s; cast(void)s; } --- Error: cannot cast from S to void ---
Comment #1
by henning — 2013-08-16T17:58:28Z
https://github.com/D-Programming-Language/dmd/pull/2482
Comment #2
by github-bugzilla — 2013-08-16T20:44:29Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/3ba3a2e35d2bfa690517fc713d679899c2cd1a10
fix issue 10834 - cannot use cast(void)expr if the type of expr is a struct
https://github.com/D-Programming-Language/dmd/commit/5e015a5ffc58d8633aece904cf46fa0dc4387782
Merge pull request #2482 from hpohl/10834 fix issue 10834 - cannot use cast(void)expr if the type of expr is a struct