Comment #0 by bruno.do.medeiros+deebugz — 2006-08-15T19:13:22Z
Compiler allows the declaration of dynamic arrays of typedefs of "immediate"-function types. And crashes when trying to change the length of those. Code:
-----
typedef int ft(int);
ft[] x; // is allowed
void test() {
x.length = 2; // crashes DMD
}
Comment #1 by bugzilla — 2006-09-19T15:25:18Z
Fixed in DMC 0.167.
Comment #2 by thomas-dloop — 2006-10-06T02:10:37Z
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[email protected] schrieb am 2006-08-16:
> http://d.puremagic.com/issues/show_bug.cgi?id=289
> Compiler allows the declaration of dynamic arrays of typedefs of
> "immediate"-function types. And crashes when trying to change the length of
> those. Code:
> -----
>
> typedef int ft(int);
>
> ft[] x; // is allowed
>
> void test() {
> x.length = 2; // crashes DMD
> }
Added to DStress as
http://dstress.kuehne.cn/nocompile/t/typedef_21_A.dhttp://dstress.kuehne.cn/nocompile/t/typedef_21_B.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFJgmvLK5blCcjpWoRAk1KAJsFyeU3CHMRE3pOakmSQNsVh9/WcwCgmj6m
EgDc34DbE+dVHMs56bJvFaw=
=SpGK
-----END PGP SIGNATURE-----