Mercurial > projects > dstress
changeset 1463:a88dcaf5c0d0
[Issue 883] ICE: nested templates with integer arguments
Lionello Lunesu <lio@lunesu.com>
2007-01-24
http://d.puremagic.com/issues/show_bug.cgi?id=883
author | thomask |
---|---|
date | Thu, 05 Apr 2007 10:31:02 +0000 |
parents | 4bf2a846ddf2 |
children | 92ed738d5fad |
files | run/t/template_57_A.d |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_57_A.d Thu Apr 05 10:31:02 2007 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Lionello Lunesu <lio@lunesu.com> +// @date@ 2007-01-24 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=883 +// @desc@ [Issue 883] ICE: nested templates with integer arguments + +module dstress.run.t.template_57_A; + +struct Foo(int I){ + void Bar(int A)(Foo!(A) x ){ + } +} + +int main(){ + Foo!(1) x; + Foo!(1) y; + x.Bar(y); + return 0; +}