[Mono-bugs] [Bug 58405][Nor] New - mcs issues erroneous "Use of unassigned local variable" error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 12 May 2004 17:24:33 -0400 (EDT)


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 adamm@san.rr.com.

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

--- shadow/58405	2004-05-12 17:24:32.000000000 -0400
+++ shadow/58405.tmp.10564	2004-05-12 17:24:33.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 58405
+Product: Mono: Compilers
+Version: unspecified
+OS: other
+OS Details: Debian testing (with a few unstable packages)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: adamm@san.rr.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs issues erroneous "Use of unassigned local variable" error
+
+Please fill in this template when reporting a bug, unless you know what you 
+are doing.
+Description of Problem:
+The compiler erroneously reports that I am using unassigned local variables 
+and refuses to compile my source code.
+
+Steps to reproduce the problem:
+Attempt to build the attached file (test.cs):
+$ mcs -t:library test.cs
+
+Actual Results:
+test.cs(36) error CS0165: Use of unassigned local variable `gp'
+test.cs(46) error CS0165: Use of unassigned local variable `gp'
+Compilation failed: 2 error(s), 0 warnings
+
+Expected Results:
+Successful compilation of this source file.
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+mcs reports version: Mono C# compiler version 0.31.0.0
+This is the latest version available as a package for Debian.
+Sorry I didn't test it against mono beta. :-/
+
+test.cs is a stripped-down version of the other attached file, 
+RedBlackTree.cs, which is included for reference.