February 27, 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@puremagic.com
        ReportedBy: pearfalse@googlemail.com


--- Comment #0 from Simon Harris <pearfalse@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: -------
February 27, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9610


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim@maxim-fomin.ru
         OS/Version|Mac OS X                    |All


--- Comment #1 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-27 10:44:18 PST ---
I can reproduce on linux, remove OS specific tag.

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