# HG changeset patch # User thomask # Date 1162999420 0 # Node ID 1fb137179022f77fbea639bef07598e64580c358 # Parent 4eda4938c34ee588861fb19bfcef50348765308a [Issue 479] New: can't compare arrayliteral statically with string Nazo Humei 2006-11-04 news:bug-479-3@http.d.puremagic.com/issues/ diff -r 4eda4938c34e -r 1fb137179022 compile/o/opEquals_06_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_A.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_A; + +static if(['a','b','c','d'] == "abcd"){ + // OK +}else{ + static assert(0); +} diff -r 4eda4938c34e -r 1fb137179022 compile/o/opEquals_06_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_B.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_B; + +static if(['a','b','c','d'] != "abcd"){ + static assert(0); +} diff -r 4eda4938c34e -r 1fb137179022 compile/o/opEquals_06_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_C.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_C; + +static if("abcd" != ['a','b','c','d']){ + static assert(0); +} diff -r 4eda4938c34e -r 1fb137179022 compile/o/opEquals_06_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_D.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_D; + +static if("abcd" == ['a','b','c','d']){ + // OK +}else{ + static assert(0); +} diff -r 4eda4938c34e -r 1fb137179022 compile/o/opEquals_06_E.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_E.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_E; + +const char[] str = "abcd"; + +static if(str == ['a','b','c','d']){ + // OK +}else{ + static assert(0); +} diff -r 4eda4938c34e -r 1fb137179022 compile/o/opEquals_06_F.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_F.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_F; + +const char[] str = "abcd"; + +static if(['a','b','c','d'] == str){ + // OK +}else{ + static assert(0); +} diff -r 4eda4938c34e -r 1fb137179022 compile/o/opEquals_06_G.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_G.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_G; + +const char[] str = "abcd"; + +static if(['a','b','c','d'] != str){ + static assert(0); +} diff -r 4eda4938c34e -r 1fb137179022 compile/o/opEquals_06_H.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_H.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_H; + +const char[] str = "abcd"; + +static if(str != ['a','b','c','d']){ + static assert(0); +} diff -r 4eda4938c34e -r 1fb137179022 reporter.txt --- a/reporter.txt Wed Nov 08 15:23:30 2006 +0000 +++ b/reporter.txt Wed Nov 08 15:23:40 2006 +0000 @@ -18,6 +18,7 @@ Ben Hinkle , , Benjamin Herr Bent Rasmussen +Bill Baxter berupon bobef Boris Kolar @@ -96,6 +97,7 @@ Mike Swieton Mizuno Hiroki nail +Nazo Humei ndove http://www.dsource.org/forums/profile.php?mode=viewprofile&u=142 Neil Santos Nick Sabalausky