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
Fixed DMD 1.013.
Added to DStress as http://dstress.kuehne.cn/run/i/invariant_33_A.d http://dstress.kuehne.cn/run/i/invariant_33_B.d
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル