# HG changeset patch # User thomask # Date 1160117825 0 # Node ID 8c922e000a6dab1228276b0fbb57e590974c8ddd # Parent 6d34f92bff53ed5ab15c75ccb422d9410243e625 [Issue 402] New: compiler crash with mixin and forward reference Bradley Smith 2006-10-06 news:bug-402-3@http.d.puremagic.com/issues/ diff -r 6d34f92bff53 -r 8c922e000a6d nocompile/a/alias_39_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/a/alias_39_A.d Fri Oct 06 06:57:05 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bradley Smith +// @date@ 2006-10-06 +// @uri@ news:bug-402-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 402] New: compiler crash with mixin and forward reference + +// __DSTRESS_ELINE__ 21 + +module dstress.nocompile.a.alias_39_A; + +template Foo(alias b){ + int a() { + return b; + } +} + +void test(){ + mixin Foo!(y); +} diff -r 6d34f92bff53 -r 8c922e000a6d nocompile/a/alias_39_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/a/alias_39_B.d Fri Oct 06 06:57:05 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bradley Smith +// @date@ 2006-10-06 +// @uri@ news:bug-402-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 402] New: compiler crash with mixin and forward reference + +// __DSTRESS_ELINE__ 21 + +module dstress.nocompile.a.alias_39_B; + +template Foo(alias b){ + int a() { + return b; + } +} + +void test(){ + mixin Foo!(y) y; +}