# HG changeset patch # User thomask # Date 1160117830 0 # Node ID 180f9d6a19e0bc8267f045933b353e4ec37c4799 # Parent 8c922e000a6dab1228276b0fbb57e590974c8ddd [Issue 289] New: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types Bruno Medeiros 2006-09-16 news:bug-289-3@http.d.puremagic.com/issues/ diff -r 8c922e000a6d -r 180f9d6a19e0 nocompile/t/typedef_21_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typedef_21_A.d Fri Oct 06 06:57:10 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros +// @date@ 2006-09-16 +// @uri@ news:bug-289-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 289] New: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.t.typedef_21_A; + +typedef int ft(int); + +ft[] x; + +void test() { + x.length = 2; +} diff -r 8c922e000a6d -r 180f9d6a19e0 nocompile/t/typedef_21_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typedef_21_B.d Fri Oct 06 06:57:10 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bruno Medeiros +// @date@ 2006-09-16 +// @uri@ news:bug-289-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 289] New: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.t.typedef_21_B; + +typedef int ft(int); + +ft[] x;