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

           Summary: immutable `_d_args` can be written to with
                    `main(char[][])`
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Denis Shelomovskij <[email protected]> 2012-11-15 
14:56:04 MSK ---
---
extern (C) string[] rt_args();

void main(char[][] args)
{
    assert(rt_args()[0][0]);
    args[0][0] = 0;
    assert(rt_args()[0][0]); // fails
}
---

Fixed in https://github.com/D-Programming-Language/druntime/pull/349

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

Reply via email to