[Mono-bugs] [Bug 77484][Nor] New - Use of unassigned local variable `'(CS0165) bug

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 6 11:11:55 EST 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 informatique.internet at fiducial.fr.

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

--- shadow/77484	2006-02-06 11:11:55.000000000 -0500
+++ shadow/77484.tmp.4329	2006-02-06 11:11:55.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 77484
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Use of unassigned local variable `'(CS0165) bug
+
+There's a strange mcs bug when compiling this test case :
+
+	throw new Exception("Hello");
+	string hello="coucou";
+	try
+	{
+
+	}catch
+	{
+
+	}
+	finally
+	{
+		Console.WriteLine(hello);
+	}
+
+On VS.NET 2003 it compiles without any problems, on Mono it lamentably
+fails with :
+/home/hubert/Projects/test/Main.cs(19,25): error CS0165: Use of unassigned
+local variable `hello'
+
+I know that my test case seems to be a bit stupid... but it's sometimes
+useful to throw exception at the begining of a method!
+(When using precompilation directive #if)
+
+it's seems to be a mono bug!
+
+Thanks!


More information about the mono-bugs mailing list