Summary: ref bypasses array const
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-06-21 10:55:19 PDT ---
Maybe this bug is already fixed in the dmd 2.054alpha.
This runs with no errors on Windows and segfaults at runtime on Linux:

void foo(ref string txt) {
    txt.length += 1;
void main() {
    const s = "hello";

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

Reply via email to