[Mono-bugs] [Bug 78820][Nor] New - compiler no longer complains about struct types that are used unitialized

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jul 11 13:46:55 EDT 2006


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

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

--- shadow/78820	2006-07-11 13:46:55.000000000 -0400
+++ shadow/78820.tmp.9200	2006-07-11 13:46:55.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 78820
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: toshok at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: compiler no longer complains about struct types that are used unitialized
+
+The following compiles on svn HEAD mcs, but fails with "error CS0165: Use
+of unassigned local" on windows.
+
+======
+
+using System.Drawing;
+
+public class Foo {
+  public static void Main (string[] args)
+  {
+    Rectangle foo;
+
+    foo.X = 5;
+  }
+}
+
+=======


More information about the mono-bugs mailing list