Mercurial > projects > dstress
changeset 1348:b586d4d93855
[Issue 826] ICE: is-expression with invalid template instantiation
Rueschi <rueschi@giquadrat.de>
2007-01-09
http://d.puremagic.com/issues/show_bug.cgi?id=826
author | thomask |
---|---|
date | Wed, 14 Feb 2007 10:10:12 +0000 |
parents | 5dcdd1cd6a66 |
children | b46ea253c724 |
files | compile/b/bug_e2ir_520_B.d reporter.txt run/b/bug_e2ir_520_A.d |
diffstat | 3 files changed, 43 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/b/bug_e2ir_520_B.d Wed Feb 14 10:10:12 2007 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Rueschi <rueschi@giquadrat.de> +// @date@ 2007-01-09 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=826 +// @desc@ [Issue 826] ICE: is-expression with invalid template instantiation + +module dstress.compile.b.bug_e2ir_520_B; + +class Templ(T){ + this(){ + unknown_identifier; + } +} + +static assert(false == is(Templ!(int)));
--- a/reporter.txt Wed Feb 14 10:09:49 2007 +0000 +++ b/reporter.txt Wed Feb 14 10:10:12 2007 +0000 @@ -121,6 +121,7 @@ Robert Schiele <rschiele@uni-mannheim.de> Roberto Mariottini Roel Mathys <roel.mathys@yucom.be>, <roel.mathys@gmail.com> +Rueschi <rueschi@giquadrat.de> Russ Lewis <spamhole-2001-07-16@deming-os.org> Russell Wilkins <Russell.Wilkins@grovestarsoftware.com>, <rwilkins@grovestarsoftware.com> Sam McCall <tunah@tunah.net>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_e2ir_520_A.d Wed Feb 14 10:10:12 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Rueschi <rueschi@giquadrat.de> +// @date@ 2007-01-09 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=826 +// @desc@ [Issue 826] ICE: is-expression with invalid template instantiation + +module dstress.run.b.bug_e2ir_520_A; + +class Templ(T){ + this(){ + unknown_identifier; + } +} + +int main(){ + bool b = is(Templ!(int)); + if(b){ + assert(0); + } + return 0; +}