Mercurial > projects > dstress
changeset 1026:a4b91ec616fa
DMD crash with static if and anonymous classes
<h3r3tic@mat.uni.torun.pl>
2006-05-05
news:bug-128-3@http.d.puremagic.com/bugzilla/
author | thomask |
---|---|
date | Wed, 24 May 2006 16:24:07 +0000 |
parents | 8516fcb66401 |
children | 7ee2442b6bf4 |
files | compile/c/class_24_A.d compile/c/class_24_B.d |
diffstat | 2 files changed, 38 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/c/class_24_A.d Wed May 24 16:24:07 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-05-05 +// @uri@ news:bug-128-3@http.d.puremagic.com/bugzilla/ + +module dstress.compile.c.class_24_A; + +class Foo { +} + +typeof(new () class Foo{}) x; + +void main(){ + Foo y; + y = x; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/c/class_24_B.d Wed May 24 16:24:07 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-05-05 +// @uri@ news:bug-128-3@http.d.puremagic.com/bugzilla/ + +module dstress.compile.c.class_24_B; + +class Foo { +} + +void main(){ + typeof(new () class Foo{}) x; + + Foo y; + y = x; +}