[Issue 1045] New: TypeInfo.toString broken for unions and structs

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


http://d.puremagic.com/issues/show_bug.cgi?id=1045

           Summary: TypeInfo.toString broken for unions and 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


# module dstress.run.typeid_70;
#
# struct MyStruct{
#    int dummy;
# }
#
# int main(){
#    TypeInfo ti = typeid(MyStruct);
#    assert(ti.toString()=="dstress.run.typeid_70.MyStruct");
#    return 0;
# }

gdmd-0.23 -m64 run/typeid_70.d -ofx && ./x
Error: AssertError Failure run/typeid_70.d(16)

gdmd-0.23 -m32 run/typeid_70.d -ofx && ./x
success

test cases:
http://dstress.kuehne.cn/run/typeid_70.d
http://dstress.kuehne.cn/run/typeid_71.d
http://dstress.kuehne.cn/run/typeid_72.d
http://dstress.kuehne.cn/run/typeid_73.d
http://dstress.kuehne.cn/run/typeid_74.d
http://dstress.kuehne.cn/run/typeid_78.d
http://dstress.kuehne.cn/run/typeid_80.d


-- 



More information about the D.gnu mailing list