http://d.puremagic.com/issues/show_bug.cgi?id=10091

           Summary: [HEAD] Cannot cast struct member string enum to static
                    ubyte array of same size
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-05-16 
10:38:04 MSD ---
---
struct S
{ enum e = "a"; }

void main()
{
    auto arr = cast(ubyte[1]) S.e; // Error: e2ir: cannot cast "a" of type
string to type ubyte[1u]
}
---

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

Reply via email to