Bug 1045 – TypeInfo.toString broken for unions and structs

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-03-08T10:34:00Z
Last change time
2015-06-09T05:15:19Z
Assigned to
dvdfrdmn
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2007-03-08T10:34:27Z
# 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
Comment #1 by dvdfrdmn — 2007-07-22T10:58:00Z
Fixed as of svn r132 / release 0.24 by earlier changes.