# HG changeset patch # User thomask # Date 1177351719 0 # Node ID fcafb2c9da5f67533de51a2fb2166fd65aeb74ab # Parent f0259cabdf782609fc5ae1acefaa58dc3bcbd3a4 [Issue 1138] ICE when tuple template gets indexed Manuel K?nig 2007-04-13 http://d.puremagic.com/issues/show_bug.cgi?id=1138 diff -r f0259cabdf78 -r fcafb2c9da5f run/t/tuple_22_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/tuple_22_A.d Mon Apr 23 18:08:39 2007 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Manuel König +// @date@ 2007-04-13 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1138 +// @desc@ [Issue 1138] ICE when tuple template gets indexed + +module dstress.run.t.tuple_22_A; + +template Tuple(T...){ + alias T Tuple; +} + +void dummy(...){ +} + +int main(){ + dummy(Tuple!(1, 2, 3)); + return 0; +} diff -r f0259cabdf78 -r fcafb2c9da5f run/t/tuple_22_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/tuple_22_B.d Mon Apr 23 18:08:39 2007 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Manuel König +// @date@ 2007-04-13 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1138 +// @desc@ [Issue 1138] ICE when tuple template gets indexed + +module dstress.run.t.tuple_22_B; + +template Tuple(T...){ + alias T items; +} + +void dummy(...){ +} + +int main(){ + dummy(Tuple!(1, 2, 3).items); + return 0; +}