Bug 732 – Boxer unit test fails

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2006-12-23T12:53:00Z
Last change time
2014-02-15T13:28:48Z
Assigned to
bugzilla
Creator
dvdfrdmn

Comments

Comment #0 by dvdfrdmn — 2006-12-23T12:53:07Z
Running the Phobos unittest program yields: Error: Unboxed bool as int; however, unboxable says it should fail. Fix: Replace line 709: return *cast(void**) value.data; if (isArrayTypeInfo(value.type)) return *cast(void[]*) value.data; - if (typeid(Object) == value.type) return *cast(Object*) value.data; throw new UnboxException(value, typeid(T)); with: + if (cast(TypeInfo_Class) value.type) Note: Typeinfo_Interface probably also needs to be handled here and in unboxable().
Comment #1 by braddr — 2007-10-28T03:25:36Z
Fixed in dmd release 1.022 and 2.006