www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1135] New: invariant keyword parsing is messed up

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1135

           Summary: invariant keyword parsing is messed up
           Product: D
           Version: 1.011
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: torhu yahoo.com


Two examples of how this bug manifests itself.  Removing 'synchronized' fixes
both these examples:

bug.d:
---
class C {
    synchronized invariant { int x; }
}
---
dmd -c bug
bug.d(2): variable bug.C.x variable x cannot be synchronized


bug2.d:
---
class C {
    int x;
    synchronized invariant { this.x = 5; }
}
---
dmd -c bug2
bug.d(3): found '.' when expecting '('
bug.d(3): found ';' when expecting ')'
bug.d(3): semicolon expected following function declaration


-- 
Apr 12 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1135


torhu yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |regression




-- 
Apr 14 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1135


torhu yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 1.013.


-- 
Apr 19 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1135


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All





Added to DStress as
http://dstress.kuehne.cn/run/i/invariant_33_A.d
http://dstress.kuehne.cn/run/i/invariant_33_B.d


-- 
Apr 23 2007