www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10834] New: cannot use cast(void)expr if the type of expr is a struct

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10834

           Summary: cannot use cast(void)expr if the type of expr is a
                    struct
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: henning still-hidden.de


--- Comment #0 from Henning Pohl <henning still-hidden.de> 2013-08-16 17:52:39
PDT ---
void main()
{
    struct S { int i; }
    S s;
    cast(void)s;
}

---
Error: cannot cast from S to void
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 16 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10834


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-08-16 17:58:28
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2482

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 16 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10834



--- Comment #2 from github-bugzilla puremagic.com 2013-08-16 20:44:29 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 16 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10834


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


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