# HG changeset patch # User thomask # Date 1177350928 0 # Node ID 64151e92e11313e2bfe48891fc53fb5ee88304bf # Parent 7a686112b04744d10db6eddb0674749ad8033fe9 [Issue 1172] Inline assembler: cannot access member of templated aggregate directly Matti Niemenmaa 2007-04-21 http://d.puremagic.com/issues/show_bug.cgi?id=1172 diff -r 7a686112b047 -r 64151e92e113 run/l/length_12_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/l/length_12_A.d Mon Apr 23 17:55:28 2007 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa +// @date@ 2007-04-21 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1171 +// @desc@ [Issue 1171] Cannot create a static array with the length of a const static array in function scope + +module dstress.run.l.length_12_A; + +int main() { + const int[2] foo; + int[foo.length] bar; + + if(2 != bar.length){ + assert(0); + } + + return 0; +} diff -r 7a686112b047 -r 64151e92e113 run/l/length_12_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/l/length_12_B.d Mon Apr 23 17:55:28 2007 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa +// @date@ 2007-04-21 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1171 +// @desc@ [Issue 1171] Cannot create a static array with the length of a const static array in function scope + +module dstress.run.l.length_12_B; + +const int[2] foo; + +int main() { + int[foo.length] bar; + + if(2 != bar.length){ + assert(0); + } + + return 0; +} diff -r 7a686112b047 -r 64151e92e113 run/l/length_12_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/l/length_12_C.d Mon Apr 23 17:55:28 2007 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa +// @date@ 2007-04-21 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1171 +// @desc@ [Issue 1171] Cannot create a static array with the length of a const static array in function scope + +module dstress.run.l.length_12_C; + +const int[2] foo; +int[foo.length] bar; + +int main() { + + if(2 != bar.length){ + assert(0); + } + + return 0; +}