Mercurial > projects > dstress
changeset 1179:180f9d6a19e0
[Issue 289] New: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types
Bruno Medeiros <brunodomedeiros+bugz@gmail.com>
2006-09-16
news:bug-289-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Fri, 06 Oct 2006 06:57:10 +0000 |
parents | 8c922e000a6d |
children | 6edbee11e5be |
files | nocompile/t/typedef_21_A.d nocompile/t/typedef_21_B.d |
diffstat | 2 files changed, 36 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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 <brunodomedeiros+bugz@gmail.com> +// @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; +}
--- /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 <brunodomedeiros+bugz@gmail.com> +// @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;