5664 – Cannot compile static synchronized member function.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5664 - Cannot compile static synchronized member function.
Summary: Cannot compile static synchronized member function.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: wolfwood
URL:
Keywords:
Depends on:
Blocks:
Reported: 2011年02月28日 01:35 UTC by Takuya Kurosawa
Modified: 2015年06月09日 05:11 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Takuya Kurosawa 2011年02月28日 01:35:34 UTC
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 Takuya Kurosawa 2011年02月28日 01:37:52 UTC
dmd version: 2.052
Comment 2 wolfwood 2011年04月27日 20:33:21 UTC
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 wolfwood 2011年04月27日 21:07:35 UTC
(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 wolfwood 2011年05月03日 11:39:38 UTC
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 wolfwood 2011年05月03日 11:40:23 UTC
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 wolfwood 2011年05月03日 14:37:30 UTC
Fixed by commits 80c9a57 and 7ec9a76.


AltStyle によって変換されたページ (->オリジナル) /