Thread overview
[Issue 1037] New: regression: wrong code generation for static getters
Mar 07, 2007
d-bugmail
Apr 14, 2007
d-bugmail
Jul 21, 2007
d-bugmail
March 07, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1037

           Summary: regression: wrong code generation for static getters
           Product: DGCC aka GDC
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: thomas-dloop@kuehne.cn


# class MyClass{
#    static int _i;
#
#    static int prop(){
#       return _i;
#    }
#
#    static void prop(int i){
#       _i=i;
#    }
# }
#
# int main(){
#    MyClass c = new MyClass();
#    c.prop = true ? MyClass.prop : MyClass.prop;
#    if(0 != c.prop){
#       assert(0);
#    }
#    c.prop = 7;
#    if(7 != c.prop){
#       assert(0);
#    }
#    return 0;
# }

gdmd-0.23 -O bug_e2ir_141_B.d -oftest &&  ./test
Error: AssertError Failure run/bug_e2ir_141_B.d(33)

test case:
http://dstress.kuehne.cn/run/bug_e2ir_141_B.d


-- 

April 14, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1037


braddr@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression




-- 

July 21, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1037


dvdfrdmn@users.sf.net changed:

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




------- Comment #1 from dvdfrdmn@users.sf.net  2007-07-21 09:09 -------
Fixed as of svn r130 / release 0.24 by an earlier fix or DMD merge.


--