Bug 1135 – invariant keyword parsing is messed up

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-12T19:04:00Z
Last change time
2014-02-16T15:22:49Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
torhu

Comments

Comment #0 by torhu — 2007-04-12T19:04:52Z
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
Comment #1 by torhu — 2007-04-19T15:53:33Z
Fixed DMD 1.013.
Comment #2 by thomas-dloop — 2007-04-23T12:56:23Z