[Mono-bugs] [Bug 55698][Wis] New - We allow struct cycle
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 16 Mar 2004 22:56:54 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=55698
--- shadow/55698 2004-03-16 22:56:54.000000000 -0500
+++ shadow/55698.tmp.29758 2004-03-16 22:56:54.000000000 -0500
@@ -0,0 +1,33 @@
+Bug#: 55698
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: We allow struct cycle
+
+This code should not compile:
+
+struct T {
+ X x;
+ static void Main () {}
+}
+
+struct X { T t; }
+
+However, we compile it.
+
+CSC gives:
+
+CS0523 : Struct member `X.t' of type `T' causes a cycle in the structure
+layout.