[Mono-bugs] [Bug 47681][Nor] Changed - Invalid generated IL
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 25 Aug 2003 11:25:21 -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 jlaban@wanadoo.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=47681
--- shadow/47681 2003-08-25 11:12:12.000000000 -0400
+++ shadow/47681.tmp.9271 2003-08-25 11:25:21.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 47681
Product: Mono/MCS
Version: unspecified
OS: All
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: Misc
AssignedTo: martin@ximian.com
ReportedBy: jlaban@wanadoo.Fr
QAContact: mono-bugs@ximian.com
@@ -55,6 +55,45 @@
------- Additional Comments From martin@ximian.com 2003-08-21 22:15 -------
Can't reproduce this bug, the testcase works fine for me.
------- Additional Comments From jlaban@wanadoo.Fr 2003-08-25 11:12 -------
Now it is working, I guess it has been fixed while fixing an other
bug.
+
+------- Additional Comments From jlaban@wanadoo.Fr 2003-08-25 11:25 -------
+Actually, the bug in my original code is still here. I must have
+stripped down the code a little bit too far.
+
+The error is :
+
+** ERROR **: Invalid IL code at IL0000 in 00 .TestClass:MyMethod ():
+IL_0000: ldc.i4 1500
+
+Here is the code that generates invalid IL (with the current CVS) :
+
+using System;
+
+public class TestClass : IDisposable
+{
+ public static void Main()
+ {
+ TestClass test = new TestClass();
+ test.MyMethod();
+ }
+
+ public void Dispose()
+ {
+
+ }
+
+ public void MyMethod()
+ {
+ byte[] buffer = new byte[1500];
+
+ using(TestClass test = new TestClass())
+ {
+ while(true)
+ {
+ }
+ }
+ }
+}