[Issue 8119] New: Cannot cast from void* to forwarded struct pointer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 19 01:44:40 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8119
Summary: Cannot cast from void* to forwarded struct pointer
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: degener_trash at mail.ru
--- Comment #0 from Shire <degener_trash at mail.ru> 2012-05-19 01:46:13 PDT ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list