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