www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5664] New: Cannot compile static synchronized member function.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5664

           Summary: Cannot compile static synchronized member function.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: d_lang ku6.jp


--- Comment #0 from Takuya Kurosawa <d_lang ku6.jp> 2011-02-28 01:35:34 PST ---
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?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 28 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5664



--- Comment #1 from Takuya Kurosawa <d_lang ku6.jp> 2011-02-28 01:37:52 PST ---
dmd version: 2.052

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 28 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5664


wolfwood <transmethyl+dmd gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |transmethyl+dmd gmail.com
           Platform|x86                         |All
            Version|D2                          |D1 & D2
         OS/Version|Windows                     |All
           Severity|normal                      |regression


--- Comment #2 from wolfwood <transmethyl+dmd gmail.com> 2011-04-27 20:33:21
PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 27 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5664



--- Comment #3 from wolfwood <transmethyl+dmd gmail.com> 2011-04-27 21:07:35
PDT ---
(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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 27 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5664


wolfwood <transmethyl+dmd gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|nobody puremagic.com        |transmethyl+dmd gmail.com


--- Comment #4 from wolfwood <transmethyl+dmd gmail.com> 2011-05-03 11:39:38
PDT ---
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
-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 03 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5664



--- Comment #5 from wolfwood <transmethyl+dmd gmail.com> 2011-05-03 11:40:23
PDT ---
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
-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 03 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5664


wolfwood <transmethyl+dmd gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #6 from wolfwood <transmethyl+dmd gmail.com> 2011-05-03 14:37:30
PDT ---
Fixed by commits 80c9a57 and 7ec9a76.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 03 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5664


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com


--- Comment #7 from Walter Bright <bugzilla digitalmars.com> 2011-05-03
15:13:45 PDT ---
https://github.com/D-Programming-Language/dmd/commit/80c9a5722a328099b1193d4d7cf43ea9c50fd565

https://github.com/D-Programming-Language/dmd/commit/7ec9a76518512e6536ebf42a904b7bd94059e63b

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 03 2011