changeset 1529:37c4fce34442

[Issue 1178] templates - deduction + specialization won't compile Leo Dahlmann <leo.dahlmann@gmail.com> 2007-04-23 http://d.puremagic.com/issues/show_bug.cgi?id=1178
author thomask
date Fri, 27 Apr 2007 17:32:31 +0000
parents 36d8e64392df
children 1665114e9a64
files reporter.txt run/t/template_63_A.d run/t/template_63_B.d run/t/template_63_C.d run/t/template_63_D.d
diffstat 5 files changed, 97 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/reporter.txt	Fri Apr 27 17:31:50 2007 +0000
+++ b/reporter.txt	Fri Apr 27 17:32:31 2007 +0000
@@ -99,6 +99,7 @@
 Kris			<fu@bar.com>, <someidiot@earthlink.dot.dot.dot.net>
 larrycowan
 Lars Ivar Igesund	<larsivar@igesund.net>
+Leo Dahlmann		<leo.dahlmann@gmail.com>
 Li Jie			<cpunion@gmail.com>
 Lionello Lunesu		<lionello.lunesu@crystalinter.remove.com>, <lio@lunesu.com>
 Luís Marques		<luismarques@gmail.com>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_63_A.d	Fri Apr 27 17:32:31 2007 +0000
@@ -0,0 +1,24 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Leo Dahlmann <leo.dahlmann@gmail.com>
+// @date@	2007-04-23
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1178
+// @desc@	[Issue 1178] templates - deduction + specialization won't compile
+
+module dstress.run.t.template_63_A;
+
+template outer(O){
+	O inner(I)(float x, I i){
+		return cast(O) x;
+	}
+}
+
+int main(){
+	if(5.0L != outer!(double).inner!(char[])(5.0f, "hi")){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_63_B.d	Fri Apr 27 17:32:31 2007 +0000
@@ -0,0 +1,24 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Leo Dahlmann <leo.dahlmann@gmail.com>
+// @date@	2007-04-23
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1178
+// @desc@	[Issue 1178] templates - deduction + specialization won't compile
+
+module dstress.run.t.template_63_B;
+
+template outer(O){
+	O inner(I)(float x, I i){
+		return cast(O) x;
+	}
+}
+
+int main(){
+	if(5.0L != outer!(double).inner(5.0f, "hi")){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_63_C.d	Fri Apr 27 17:32:31 2007 +0000
@@ -0,0 +1,24 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Leo Dahlmann <leo.dahlmann@gmail.com>
+// @date@	2007-04-23
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1178
+// @desc@	[Issue 1178] templates - deduction + specialization won't compile
+
+module dstress.run.t.template_63_C;
+
+template outer(O){
+	O inner(I)(float x, I i){
+		return cast(O) x;
+	}
+}
+
+int main(){
+	if(5.0L != outer!(double).inner(5.0, "hi")){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_63_D.d	Fri Apr 27 17:32:31 2007 +0000
@@ -0,0 +1,24 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Leo Dahlmann <leo.dahlmann@gmail.com>
+// @date@	2007-04-23
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1178
+// @desc@	[Issue 1178] templates - deduction + specialization won't compile
+
+module dstress.run.t.template_63_D;
+
+template outer(O){
+	O inner(I)(float x, I i){
+		return cast(O) x;
+	}
+}
+
+int main(){
+	if(5.0L != outer!(double).inner!(char[])(5.0, "hi")){
+		assert(0);
+	}
+
+	return 0;
+}