[Mono-bugs] [Bug 78001][Nor] New - Flow analysis: use of
unitialized variable.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Apr 3 15:03:05 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 miguel at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78001
--- shadow/78001 2006-04-03 15:03:05.000000000 -0400
+++ shadow/78001.tmp.28042 2006-04-03 15:03:05.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 78001
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: miguel at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Flow analysis: use of unitialized variable.
+
+Jon Jagger found this bug:
+
+
+class App
+{
+ public static void F(out int x, int y)
+ {
+ System.Console.WriteLine(y);
+ x = 42;
+ }
+
+ public static void Main()
+ {
+ int x;
+ F(out x, x);
+ }
+}
+
+and allows you you see the value of an uninitialized variable! I think
+this is a bug (the relevant clause is in the definite assignment of
+invocation expressions...)
More information about the mono-bugs
mailing list