# HG changeset patch # User thomask # Date 1166793475 0 # Node ID c99e8aac0e0ce99f3f2ce371d7808a0c43b42222 # Parent 93511f726375d95a4bac70143bf437fe45afd6f1 partial review diff -r 93511f726375 -r c99e8aac0e0c nocompile/b/expression_4154_A.d --- a/nocompile/b/expression_4154_A.d Thu Dec 21 15:12:10 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Kazuhiro Inaba -// @date@ 2006-12-03 -// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ -// @desc@ [Issue 640] New: Strage error messages around structInstance.init - -// __DSTRESS_ELINE__ 19 - -module dstress.nocompile.b.expression_4154_A; - -struct S { - int i; -} - -void foo(){ - S s = {0}; - - s = s.init; -} - diff -r 93511f726375 -r c99e8aac0e0c nocompile/b/expression_4154_B.d --- a/nocompile/b/expression_4154_B.d Thu Dec 21 15:12:10 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Kazuhiro Inaba -// @date@ 2006-12-03 -// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ -// @desc@ [Issue 640] New: Strage error messages around structInstance.init - -// __DSTRESS_ELINE__ 19 - -module dstress.nocompile.b.expression_4154_B; - -struct S { - int i; -} - -void foo(){ - S s = {0}; - - s = S.init; -} - diff -r 93511f726375 -r c99e8aac0e0c nocompile/e/expression_4154_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/expression_4154_A.d Fri Dec 22 13:17:55 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba +// @date@ 2006-12-03 +// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 640] New: Strage error messages around structInstance.init + +// __DSTRESS_ELINE__ 19 + +module dstress.nocompile.e.expression_4154_A; + +struct S { + int i; +} + +void foo(){ + S s = {0}; + + s = s.init; +} + diff -r 93511f726375 -r c99e8aac0e0c nocompile/e/expression_4154_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/expression_4154_B.d Fri Dec 22 13:17:55 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba +// @date@ 2006-12-03 +// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 640] New: Strage error messages around structInstance.init + +// __DSTRESS_ELINE__ 19 + +module dstress.nocompile.e.expression_4154_B; + +struct S { + int i; +} + +void foo(){ + S s = {0}; + + s = S.init; +} + diff -r 93511f726375 -r c99e8aac0e0c run/b/bug_expression_525_D.d --- a/run/b/bug_expression_525_D.d Thu Dec 21 15:12:10 2006 +0000 +++ b/run/b/bug_expression_525_D.d Fri Dec 22 13:17:55 2006 +0000 @@ -15,7 +15,7 @@ const char [] s = t!(); int main(){ - if(s == "a"){ + if(s == "hello"){ return 0; } } diff -r 93511f726375 -r c99e8aac0e0c run/b/bug_optimize_294_C.d --- a/run/b/bug_optimize_294_C.d Thu Dec 21 15:12:10 2006 +0000 +++ b/run/b/bug_optimize_294_C.d Fri Dec 22 13:17:55 2006 +0000 @@ -13,7 +13,7 @@ } int main() { - if ((Foo!(char)).init == (Foo!(byte)).init){ + if ((Foo!(byte)).init == (Foo!(byte)).init){ return 1; } return 0; diff -r 93511f726375 -r c99e8aac0e0c run/b/bug_optimize_294_E.d --- a/run/b/bug_optimize_294_E.d Thu Dec 21 15:12:10 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Boris Kolar -// @date@ 2006-11-29 -// @uri@ news: -// @date@ 2006-12-03 -// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ -// @desc@ [Issue 640] New: Strage error messages around structInstance.init - -module dstress.run.b.expression_4154_C; - -struct S { - int i = 2; -} - -int main(){ - const S s = {1}; - - S x = s.init; - - if(x.i != 2){ - assert(0); - } - - return 0; -} - diff -r 93511f726375 -r c99e8aac0e0c run/bug_20041226_A.d --- a/run/bug_20041226_A.d Thu Dec 21 15:12:10 2006 +0000 +++ b/run/bug_20041226_A.d Fri Dec 22 13:17:55 2006 +0000 @@ -48,7 +48,7 @@ void extractTriangles(GeomObject geomObj){ void foobar(){ try{ - writefln("name: ", geomObj.name); + dummy("name: ", geomObj.name); return; // avoid accessing the array with 0 elements in the next line geomObj.mesh.faces[0].a - geomObj.xlate; // when this line is removed, the bug doesn't appear diff -r 93511f726375 -r c99e8aac0e0c run/e/expression_4154_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/e/expression_4154_C.d Fri Dec 22 13:17:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba +// @date@ 2006-12-03 +// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 640] New: Strage error messages around structInstance.init + +module dstress.run.e.expression_4154_C; + +struct S { + int i = 2; +} + +int main(){ + const S s = {1}; + + S x = s.init; + + if(x.i != 2){ + assert(0); + } + + return 0; +} + diff -r 93511f726375 -r c99e8aac0e0c run/f/foreach_28_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/f/foreach_28_B.d Fri Dec 22 13:17:55 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2005-04-18 +// @uri@ news:d4026v$nc0$5@digitaldaemon.com + +module dstress.run.f.foreach_28_B; + +int main(char[][] args) { + foreach(char[] p; args){ + static if(0){ + int i; + } + } + return 0; +} diff -r 93511f726375 -r c99e8aac0e0c run/m/mixin_16_A.d --- a/run/m/mixin_16_A.d Thu Dec 21 15:12:10 2006 +0000 +++ b/run/m/mixin_16_A.d Fri Dec 22 13:17:55 2006 +0000 @@ -33,6 +33,7 @@ step++; return mixer.test(); } + assert(0); } }