[Mono-bugs] [Bug 75721][Nor] Changed - [PATCH] CS0165: incorrect flow branching on member access to an unassigned class instance

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 23 11:56:17 EDT 2005


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 atsushi at ximian.com.

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

--- shadow/75721	2005-08-23 11:50:48.000000000 -0400
+++ shadow/75721.tmp.30174	2005-08-23 11:56:17.000000000 -0400
@@ -119,6 +119,23 @@
 Needs further fix.
 
 ------- Additional Comments From atsushi at ximian.com  2005-08-23 11:50 -------
 Created an attachment (id=15618)
 fixity fix
 
+
+------- Additional Comments From atsushi at ximian.com  2005-08-23 11:56 -------
+ok, am committing the patch. There is only one difference between the
+first and second patches.
+
+@@ -6875,7 +6875,7 @@
+ 			if (!ResolveBase (ec))
+ 				return null;
+ 
+-			if ((variable_info != null) && !variable_info.IsAssigned (ec)) {
++			if ((variable_info != null) && !(type.IsValueType &&
+ec.OmitStructFlowAnalysis) && !variable_info.IsAssigned (ec)) {
+ 				Error (188, "The `this' object cannot be used before all of its
+fields are assigned to");
+ 				variable_info.SetAssigned (ec);
+ 				return this;
+


More information about the mono-bugs mailing list