# HG changeset patch # User thomask # Date 1165769408 0 # Node ID 530c4717a2c5f1750ab5071a7f397c4114002dfd # Parent 30e6e9e59cc788946d897691a1a03d13cd3d2e7e [Issue 641] New: Complex string operations in template argument ICEs dmd Kazuhiro Inaba 2006-12-03 news:bug-641-3@http.d.puremagic.com/issues/ diff -r 30e6e9e59cc7 -r 530c4717a2c5 nocompile/b/bug_expression_5981_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/bug_expression_5981_A.d Sun Dec 10 16:50:08 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba +// @date@ 2006-12-03 +// @uri@ news:bug-641-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 641] New: Complex string operations in template argument ICEs dmd + +// __DSTRESS_ELINE__ 18 + +module dstress.nocompile.b.bug_expression_5981_A; + +template g(char[] s){ +} + +void foo(){ + g!(([""]~[])[0]); +} diff -r 30e6e9e59cc7 -r 530c4717a2c5 nocompile/b/bug_expression_5981_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/bug_expression_5981_B.d Sun Dec 10 16:50:08 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba +// @date@ 2006-12-03 +// @uri@ news:bug-641-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 641] New: Complex string operations in template argument ICEs dmd + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.b.bug_expression_5981_B; + +void foo(){ + auto x = ([""]~[])[0]; +}