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

           Summary: Static array is corrupted when concatenated
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: verylonglogin....@gmail.com


--- Comment #0 from Denis <verylonglogin....@gmail.com> 2011-08-10 23:19:15 PDT 
---
This works fine with dmd v1.069:
---
const staticArray = "abc";

void main() {
    static dynamicArray = staticArray ~ "d"; //corrupts staticArray
    pragma(msg, typeof(staticArray)); //char[3u]
    pragma(msg, typeof(dynamicArray)); //char[]
    static assert(staticArray == "abc");
    assert(staticArray != "abc");
    assert(staticArray == [cast(char)3, 0, 0]);
}
---

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

Reply via email to