Summary: [CTFE]: No array bounds checking in assignment to
                    char[] array
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Don <> 2010-05-30 08:05:01 PDT ---
This code shouldn't compile, due to the array bounds error. But instead,
compiler memory corruption occurs.

int bug4252()
    char [] s = "abc".dup;
    s[5] = 'd';
    return 3;
static assert(bug4252());

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to