www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9610] New: Parameters to final class method corrupted in postcondition

reply d-bugmail puremagic.com writes:
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



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: -------
Feb 27 2013
parent d-bugmail puremagic.com writes:
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



---
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: -------
Feb 27 2013