www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10091] New: [HEAD] Cannot cast struct member string enum to static ubyte array of same size

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg gmail.com> 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: -------
May 15 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10091


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-05-17 23:25:57 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2048

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



--- Comment #2 from github-bugzilla puremagic.com 2013-05-18 17:18:35 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5c9b4135f7dfd88d7bfa387473568d3e6f3aeafd
fix Issue 10091 - Cannot cast struct member string enum to static ubyte array
of same size

https://github.com/D-Programming-Language/dmd/commit/acce1d9090c67dea90edd703fd33c124794ccce2
Merge pull request #2048 from 9rnsr/fix10091

[REG2.063a] Issue 10091 - Cannot cast struct member string enum to static ubyte
array of same size

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



--- Comment #3 from github-bugzilla puremagic.com 2013-05-18 17:19:32 PDT ---
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6ef65886f05d945750c6dabe71dcef900166a4f3
Merge pull request #2048 from 9rnsr/fix10091

[REG2.063a] Issue 10091 - Cannot cast struct member string enum to static ubyte
array of same size

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


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: -------
May 18 2013