[Issue 289] New: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Oct 6 00:05:35 PDT 2006


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

d-bugmail at puremagic.com 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.d
http://dstress.kuehne.cn/nocompile/t/typedef_21_B.d

Thomas


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

iD8DBQFFJgmvLK5blCcjpWoRAk1KAJsFyeU3CHMRE3pOakmSQNsVh9/WcwCgmj6m
EgDc34DbE+dVHMs56bJvFaw=
=SpGK
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list