# HG changeset patch # User thomask # Date 1162999450 0 # Node ID e672593be3e53edc60b8926653e84f974f272b21 # Parent 089351fad902af2046df643c507f7c56460e6233 [Issue 462] New: invalid typeinfo usage breaks dmd compiler david 2006-10-26 news:bug-462-3@http.d.puremagic.com/issues/ diff -r 089351fad902 -r e672593be3e5 nocompile/t/typeinfo_02_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typeinfo_02_A.d Wed Nov 08 15:24:10 2006 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ david +// @date@ 2006-10-26 +// @uri@ news:bug-462-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 462] New: invalid typeinfo usage breaks dmd compiler + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.t.typeinfo_02_A; + +void foo(){ + Object[1] o; + o[0].typeinfo = o.typeinfo; +} diff -r 089351fad902 -r e672593be3e5 nocompile/t/typeinfo_02_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typeinfo_02_B.d Wed Nov 08 15:24:10 2006 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ david +// @date@ 2006-10-26 +// @uri@ news:bug-462-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 462] New: invalid typeinfo usage breaks dmd compiler + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.t.typeinfo_02_B; + +void foo(){ + int[1] x; + x[0].typeinfo = x.typeinfo; +} diff -r 089351fad902 -r e672593be3e5 nocompile/t/typeinfo_02_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/typeinfo_02_C.d Wed Nov 08 15:24:10 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ david +// @date@ 2006-10-26 +// @uri@ news:bug-462-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 462] New: invalid typeinfo usage breaks dmd compiler + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.t.typeinfo_02_C; + +void foo(){ + int[1] x; + int y; + x[0].typeinfo = y.typeinfo; +}