Thread overview
[Issue 8119] New: Cannot cast from void* to forwarded struct pointer
May 19, 2012
Shire
Jul 24, 2013
Henning Pohl
Jul 26, 2013
Kenji Hara
May 19, 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@puremagic.com
        ReportedBy: degener_trash@mail.ru


--- Comment #0 from Shire <degener_trash@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: -------
July 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8119


Henning Pohl <henning@still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
                 CC|                            |henning@still-hidden.de


--- Comment #2 from Henning Pohl <henning@still-hidden.de> 2013-07-24 11:36:03 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2378

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 26, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8119



--- Comment #3 from github-bugzilla@puremagic.com 2013-07-25 20:00:43 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 26, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8119


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------