[Mono-bugs] [Bug 36154][Nor] New - Definite assignment offset missmatch on structures.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
29 Dec 2002 08:28:53 -0000


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 miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=36154

--- shadow/36154	Sun Dec 29 03:28:53 2002
+++ shadow/36154.tmp.2160	Sun Dec 29 03:28:53 2002
@@ -0,0 +1,43 @@
+Bug#: 36154
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: martin@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Definite assignment offset missmatch on structures.
+
+The following program fails to compile, because there is an offset
+missmatch in the CheckOutParamters:
+
+using System;
+struct A {
+	public int a;
+	public int b;
+}
+
+class XX {
+	static void X (int b, out A a)
+	{
+		a.a = 1;
+		a.b = 2;
+	}
+
+	static void Main ()
+	{
+		A a;
+		X (1,out a);
+	}
+}
+
+The above program compiles fine, if the parameter "int b" is removed from
+the XX.X method.