[Mono-bugs] [Bug 29846][Maj] Changed - mcs fails to detect an unused local var (really simple test case)

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
16 Sep 2002 12:06:09 -0000


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 osewa77@yahoo.com.

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

--- shadow/29846	Mon Sep 16 07:55:13 2002
+++ shadow/29846.tmp.2735	Mon Sep 16 08:06:09 2002
@@ -1,12 +1,12 @@
 Bug#: 29846
 Product: Mono/MCS
 Version: unspecified
 OS: other
 OS Details: 
-Status: RESOLVED   
+Status: NEEDINFO   
 Resolution: FIXED
 Severity: Unknown
 Priority: Major
 Component: Misc
 AssignedTo: martin@gnome.org                            
 ReportedBy: gonzalo@ximian.com               
@@ -35,6 +35,22 @@
 Expected Results:
 case2.cs(8.22): error CS0165: Use of unassigned local variable 'str'.
 
 ------- Additional Comments From martin@gnome.org  2002-09-16 07:55 -------
 Fixed in CVS.
 
+
+------- Additional Comments From osewa77@yahoo.com  2002-09-16 08:06 -------
+mcs compiler output:
+unhandled Exception: System.NullReferenceException: A null value was
+found where an object instance was required
+in <0x00021> 00 .C:Main ()
+
+compiler output (ilrun):
+Uncaught exception: System.NullReferenceException: The value 'null'
+was found where an instance of an object was required
+	at System.String.Trim(Char, Int32)
+	at System.String.Trim()
+	at C.Main()
+
+I suppose this one is really not a bug.  I used mono-0.15, so maybe
+this was newly introduced?