digitalmars.D.bugs - [Issue 732] New: Boxer unit test fails
- d-bugmail puremagic.com (26/26) Dec 23 2006 http://d.puremagic.com/issues/show_bug.cgi?id=732
- d-bugmail puremagic.com (9/9) Oct 28 2007 http://d.puremagic.com/issues/show_bug.cgi?id=732
http://d.puremagic.com/issues/show_bug.cgi?id=732
Summary: Boxer unit test fails
Product: D
Version: 0.177
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla digitalmars.com
ReportedBy: dvdfrdmn users.sf.net
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().
--
Dec 23 2006
http://d.puremagic.com/issues/show_bug.cgi?id=732
braddr puremagic.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Fixed in dmd release 1.022 and 2.006
--
Oct 28 2007








d-bugmail puremagic.com