Bug 5664 – Cannot compile static synchronized member function.

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-02-28T01:35:00Z
Last change time
2015-06-09T05:11:44Z
Assigned to
transmethyl+dmd
Creator
d_lang

Comments

Comment #0 by d_lang — 2011-02-28T01:35:34Z
Code ---- class Hoge { static synchronized void fun() { } } ---- Compile error ---- test.d(4): Error: function test.Hoge.fun synchronized function fun must be a member of a class ---- Static synchronized member function became unsupported? or bug?
Comment #1 by d_lang — 2011-02-28T01:37:52Z
dmd version: 2.052
Comment #2 by transmethyl+dmd — 2011-04-27T20:33:21Z
static sychronized is now broken in the DMDFE 1.067, used to work in 1.066. seems that some D2 code was merged between these two versions.
Comment #3 by transmethyl+dmd — 2011-04-27T21:07:35Z
(In reply to comment #2) > static sychronized is now broken in the DMDFE 1.067, used to work in 1.066. > seems that some D2 code was merged between these two versions. this was broken by this commit: https://github.com/D-Programming-Language/dmd/commit/d19e57c3f0683ac3a0b290f5b73deb86aa1a6441
Comment #4 by transmethyl+dmd — 2011-05-03T11:39:38Z
fixed in this pull request. https://github.com/D-Programming-Language/dmd/pull/48 (In reply to comment #3) > (In reply to comment #2) > > static sychronized is now broken in the DMDFE 1.067, used to work in 1.066. > > seems that some D2 code was merged between these two versions. > > this was broken by this commit: > https://github.com/D-Programming-Language/dmd/commit/d19e57c3f0683ac3a0b290f5b73deb86aa1a6441
Comment #5 by transmethyl+dmd — 2011-05-03T11:40:23Z
fixed in this pull request. https://github.com/D-Programming-Language/dmd/pull/48 (In reply to comment #3) > (In reply to comment #2) > > static sychronized is now broken in the DMDFE 1.067, used to work in 1.066. > > seems that some D2 code was merged between these two versions. > > this was broken by this commit: > https://github.com/D-Programming-Language/dmd/commit/d19e57c3f0683ac3a0b290f5b73deb86aa1a6441
Comment #6 by transmethyl+dmd — 2011-05-03T14:37:30Z
Fixed by commits 80c9a57 and 7ec9a76.
Comment #7 by bugzilla — 2011-05-03T15:13:45Z