digitalmars.D.bugs - std.boxer can't unbox void*.
- AJG <alvaro.gutierrez yale.edu> Aug 21 2005
Hi,
# import std.boxer;
# void main() { unbox!(void*)(box(null)); }
Produces:
test.o: In function `_D3std5boxer8unbox_Pv5unboxFS3std5boxer3BoxZPv':
test.o(.gnu.linkonce.t_D3std5boxer8unbox_Pv5unboxFS3std5boxer3BoxZPv+0x72):
undefined reference to `_init_17TypeInfo_C6Object'
test.o(.gnu.linkonce.t_D3std5boxer8unbox_Pv5unboxFS3std5boxer3BoxZPv
0x78):test.dtest.d:
undefined reference to `_init_17TypeInfo_C6Object'
collect2: ld returned 1 exit status
--- errorlevel 1
But,
# box(null).unboxable(typeid(void*));
Runs fine. How come?
(Linux, 0.129, phobos recompiled without -release).
Thanks,
--AJG.
Aug 21 2005








AJG <alvaro.gutierrez yale.edu>