changeset 1339:0028188af433

[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes. Tyler Knott <tknott@gmail.com> 2007-01-22 http://d.puremagic.com/issues/show_bug.cgi?id=872
author thomask
date Tue, 23 Jan 2007 13:46:39 +0000
parents 54d2cf6154ba
children 5695ef959886
files compile/o/outer_02_A.d compile/o/outer_02_B.d compile/o/outer_02_C.d compile/o/outer_02_D.d compile/o/outer_02_E.d compile/o/outer_02_F.d compile/o/outer_02_G.d reporter.txt
diffstat 8 files changed, 139 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/outer_02_A.d	Tue Jan 23 13:46:39 2007 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-01-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=872
+// @desc@	[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.
+
+module dstress.compile.o.outer_02_A;
+
+class Outer{
+	class Inner{
+		this() {
+			typeof(this.outer) x;
+			static assert(Outer == typeof(x));
+		}
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/outer_02_B.d	Tue Jan 23 13:46:39 2007 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-01-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=872
+// @desc@	[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.
+
+module dstress.compile.o.outer_02_B;
+
+class Outer{
+	class Inner{
+		void foo() {
+			typeof(this.outer) x;
+			static assert(Outer == typeof(x));
+		}
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/outer_02_C.d	Tue Jan 23 13:46:39 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-01-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=872
+// @desc@	[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.
+
+module dstress.compile.o.outer_02_C;
+
+class Box{
+	class Outer{
+		class Inner{
+			void foo() {
+				typeof(this.outer) x;
+				static assert(Outer == typeof(x));
+			}
+		}
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/outer_02_D.d	Tue Jan 23 13:46:39 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-01-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=872
+// @desc@	[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.
+
+module dstress.compile.o.outer_02_D;
+
+class Box{
+	class Outer{
+		class Inner{
+			void foo() {
+				typeof(this.outer.outer) x;
+				static assert(Box == typeof(x));
+			}
+		}
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/outer_02_E.d	Tue Jan 23 13:46:39 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-01-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=872
+// @desc@	[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.
+
+module dstress.compile.o.outer_02_E;
+
+class Box{
+	class Outer{
+		class Inner{
+			void foo() {
+				Box b = this.outer.outer;
+			}
+		}
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/outer_02_F.d	Tue Jan 23 13:46:39 2007 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-01-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=872
+// @desc@	[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.
+
+module dstress.compile.o.outer_02_F;
+
+class Box{
+	class Outer{
+		class Inner{
+			void foo() {
+				Outer b = this.outer;
+			}
+		}
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/o/outer_02_G.d	Tue Jan 23 13:46:39 2007 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Tyler Knott <tknott@gmail.com>
+// @date@	2007-01-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=872
+// @desc@	[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.
+
+module dstress.compile.o.outer_02_G;
+
+class Outer{
+	class Inner{
+		void foo() {
+			Outer b = this.outer;
+		}
+	}
+}
--- a/reporter.txt	Tue Jan 23 13:46:14 2007 +0000
+++ b/reporter.txt	Tue Jan 23 13:46:39 2007 +0000
@@ -141,6 +141,7 @@
 Tim Keating
 Tintor Marko		<tm030127d@galeb.etf.bg.ac.yu>
 Tomasz Stachowiak(aka Tom S / h3r3tic / heretic)	<h3r3tic@remove.mat.uni.torun.pl>
+Tyler Knott		<tknott@gmail.com>
 Tyro			<ridimz_at@yahoo.dot.com>
 Unknown W. Brackets	<unknown@simplemachines.org>
 Uwe Salomon		<post@uwesalomon.de>