Thread overview | |||||
---|---|---|---|---|---|
|
March 17, 2005 variadic this causes error | ||||
---|---|---|---|---|
| ||||
[bug.d] import std.stdio; class A { this(...) { } } void main() { static bit[] arr = [1,0,1,0]; A a = new A(arr); } dmd bug.d -g -debug -unittest C:\Library\D\dmd\bin\..\..\dm\bin\link.exe test19,,,user32+kernel32/co/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved test19.obj(test19) Error 42: Symbol Undefined __init_11TypeInfo_Ab --- errorlevel 1 Tool completed with exit code 1 Regan |
March 17, 2005 Re: variadic this causes error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Regan Heath | Regan Heath wrote: > void main() > { > static bit[] arr = [1,0,1,0]; > A a = new A(arr); > } [...] > test19.obj(test19) > Error 42: Symbol Undefined __init_11TypeInfo_Ab > --- errorlevel 1 That's not the constructor, that's because the typeid for bit arrays (TypeInfo_Ab) is missing... TypeInfo is unfortunately semi-broken at the moment. --anders |
March 17, 2005 Re: variadic this causes error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | On Thu, 17 Mar 2005 08:58:42 +0100, Anders F Björklund <afb@algonet.se> wrote:
> Regan Heath wrote:
>
>> void main()
>> {
>> static bit[] arr = [1,0,1,0];
>> A a = new A(arr);
>> }
> [...]
>> test19.obj(test19)
>> Error 42: Symbol Undefined __init_11TypeInfo_Ab
>> --- errorlevel 1
>
> That's not the constructor, that's because the
> typeid for bit arrays (TypeInfo_Ab) is missing...
>
> TypeInfo is unfortunately semi-broken at the moment.
Ahh.. changing 'arr' to int[] does fix it.
Regan
|
Copyright © 1999-2021 by the D Language Foundation