[Issue 5493] Able to overwrite immutable data

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 26 13:16:51 PST 2011


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


Andrei Alexandrescu <andrei at metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P5
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei at metalanguage.com
         AssignedTo|nobody at puremagic.com        |bugzilla at digitalmars.com
           Severity|normal                      |major


--- Comment #2 from Andrei Alexandrescu <andrei at metalanguage.com> 2011-01-26 13:14:44 PST ---
Reduced to:

void main()
{
    immutable char[] buf = "hello";
    void fun(ref immutable(char)[] a) {}
    fun(buf);
}

This is a major bug. Please vote. Walter, it would be great if you gave this
the utmost attention.

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


More information about the Digitalmars-d-bugs mailing list