# HG changeset patch # User thomask # Date 1148487847 0 # Node ID a4b91ec616fab616eb5e0f204e5b612ed67ea769 # Parent 8516fcb6640123ed9ed53ec019cd5f2bcc9c61c7 DMD crash with static if and anonymous classes 2006-05-05 news:bug-128-3@http.d.puremagic.com/bugzilla/ diff -r 8516fcb66401 -r a4b91ec616fa compile/c/class_24_A.d --- /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@ +// @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; +} diff -r 8516fcb66401 -r a4b91ec616fa compile/c/class_24_B.d --- /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@ +// @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; +}