[Issue 6604] New: Casting away immutable modifier does nothing

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 5 06:52:43 PDT 2011


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

           Summary: Casting away immutable modifier does nothing
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: rofflwaffls at gmail.com


--- Comment #0 from Tony Young <rofflwaffls at gmail.com> 2011-09-05 06:52:33 PDT ---
Created an attachment (id=1021)
Test case.

DMD2 cannot cast away the immutable modifier a variable, or raise a suitable
error for it.

Attached code outputs:
0
0
0
2

Where the following is expected:
0
2
0
2

... or some kind of error.

-- 
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