[Issue 9610] New: Parameters to final class method corrupted in postcondition

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 27 10:34:26 PST 2013


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

           Summary: Parameters to final class method corrupted in
                    postcondition
           Product: D
           Version: D2
          Platform: All
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: pearfalse at googlemail.com


--- Comment #0 from Simon Harris <pearfalse at googlemail.com> 2013-02-27 10:34:24 PST ---
Created an attachment (id=1195)
Shows how permutations of pre- and post-conditions affect parameter integrity.

In the postcondition of a class method marked as final, method parameters are
in scope, but have corrupted values. This happens if the method has no
precondition, OR a precondition that doesn't access any function parameters.

Tested with dmd git v2.060-1496-g2352d02 on OS X 10.8.2.

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