[Issue 296] New: Template constant can not be used as size of static array.

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Aug 26 04:13:00 PDT 2006


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

d-bugmail at puremagic.com schrieb am 2006-08-19:
> http://d.puremagic.com/issues/show_bug.cgi?id=296

> template Count() { const Count = 5; }
>
> int[Count!()] x; 
> // Error: Count!() is used as a type
> // can't have associative array key of void

Added to DStress as
http://dstress.kuehne.cn/compile/t/template_43_A.d
http://dstress.kuehne.cn/compile/t/template_43_B.d

Thomas


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

iD8DBQFE8DOdLK5blCcjpWoRAvzWAJ9eEfwxqeH0GCtqM1R79Ua2P1KR2ACfTVam
uzQZRODhjP3s1toahniaGx8=
=isqS
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list