www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1046] New: TypeInfo.opEquals broken for structs

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

           Summary: TypeInfo.opEquals broken for structs
           Product: DGCC aka GDC
           Version: 0.23
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: glue layer
        AssignedTo: dvdfrdmn users.sf.net
        ReportedBy: thomas-dloop kuehne.cn


# int main(){
#    struct A{
#    }
#
#    struct B{
#    }
#
#    if(typeid(A) != typeid(B)){
#       return 0;
#    }
#    assert(0);
# }

gdmd-0.23 -m64 run/t/typeid_86_A.d -ofx && ./x && echo success
Error: AssertError Failure run/t/typeid_86_A.d(21)

gdmd-0.23 -m32 run/t/typeid_86_A.d -ofx && ./x && echo success
success

test cases:
http://dstress.kuehne.cn/run/t/typeid_86_A.d
http://dstress.kuehne.cn/run/t/typeid_86_C.d
http://dstress.kuehne.cn/run/t/typeid_91_D.d
http://dstress.kuehne.cn/run/t/typeid_91_D.d


-- 
Mar 08 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1046


dvdfrdmn users.sf.net changed:

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




------- Comment #1 from dvdfrdmn users.sf.net  2007-07-22 11:00 -------
Fixed as of svn r132 / release 0.24 by earlier changes


-- 
Jul 22 2007