[Bug 142] New: Assertion failure: '0' on line 610 in file 'template.c'

Thomas Kuehne thomas-dloop at kuehne.cn
Fri May 19 09:44:58 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-05-17:
> // I don't know if the code is supposed to work,
> // but I'm trying to convert
> // #define A(x) x=2
> template A(alias T) {
>         void A(T) { T=2; }
> }
>
> void main()
> {
>         int i;
>         A(i);
>         assert(i==2);
> }

Added to DStress as
http://dstress.kuehne.cn/nocompile/b/bug_template_610_A.d
http://dstress.kuehne.cn/nocompile/b/bug_template_610_B.d
http://dstress.kuehne.cn/run/b/bug_template_610_C.d
http://dstress.kuehne.cn/nocompile/b/bug_template_610_D.d
http://dstress.kuehne.cn/nocompile/b/bug_template_610_E.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFEbcGt3w+/yD4P9tIRAltgAJ9eDNdj4UwVVLBBOS71y+P08DovOgCglJQ1
/bx90fnYGDBlXN+TlpuA+3s=
=/kd+
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list