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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 16 17:52:40 PDT 2013


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 at puremagic.com
        ReportedBy: henning at still-hidden.de


--- Comment #0 from Henning Pohl <henning at 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: -------


More information about the Digitalmars-d-bugs mailing list