← Back to index
|
Original Bugzilla link
Bug 8119 – Cannot cast from void* to forwarded struct pointer
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-19T01:46:00Z
Last change time
2013-07-25T20:09:13Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
degener_trash
Comments
Comment #0
by degener_trash — 2012-05-19T01:46:13Z
extern(C) { struct PrivateStruct; // private struct in external C library void* Foo(); // external function returns untyped pointer to PrivateHandle } PrivateHandle* ptr = null; // ok ptr = cast(PrivateHandle*)Foo(); // PrivateHandle unknown size
Comment #1
by degener_trash — 2012-05-19T01:48:55Z
I'm mistyped. Replace PrivateHandle to PrivateStruct.
Comment #2
by henning — 2013-07-24T11:36:03Z
https://github.com/D-Programming-Language/dmd/pull/2378
Comment #3
by github-bugzilla — 2013-07-25T20:00:43Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/759439c1b5924e94039034588070ff5982b58bf5
fix issue 8119 - Cannot cast from void* to forwarded struct pointer
https://github.com/D-Programming-Language/dmd/commit/99b7b7ef65bea926fa29fb2088f7ff2e7f1c5f89
Merge pull request #2378 from hpohl/8119 fix issue 8119 - Cannot cast from void* to forwarded struct pointer