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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 8 08:34:47 PST 2007


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 at users.sf.net
        ReportedBy: thomas-dloop at 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


-- 



More information about the D.gnu mailing list