[Mono-bugs] [Bug 31816][Nor] Changed - mcs generates bogus code on using() statements with non-IDisposable objects

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
8 Oct 2002 06:23:52 -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 miguel@ximian.com.

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

--- shadow/31816	Sun Oct  6 00:31:16 2002
+++ shadow/31816.tmp.15454	Tue Oct  8 02:23:52 2002
@@ -1,17 +1,17 @@
 Bug#: 31816
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Misc
-AssignedTo: mono-bugs@ximian.com                            
+AssignedTo: miguel@ximian.com                            
 ReportedBy: vladimir@pobox.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: mcs generates bogus code on using() statements with non-IDisposable objects
@@ -48,6 +48,14 @@
         .locals init (
                 class Driver    V_0)
     } // end of method default void Main(string[] args)
 
 (generating a method without any instructions should probably generate at
 least some sort of exception)
+
+------- Additional Comments From miguel@ximian.com  2002-10-08 02:23 -------
+The bug is simpler than it looks: MCS is not reporting an error
+somewhere, but returns the failure core (null on expressions).
+
+That is why no code is generated for the function, but since the error
+is not actually flagged, the image is emitted.  I will look into this
+tomorrow.