[Mono-bugs] [Bug 30073][Nor] Changed - redim of an array with variable bound parameter fails

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 9 Oct 2003 08:56:49 -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 vargaz@freemail.hu.

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

--- shadow/30073	2003-08-19 13:39:07.000000000 -0400
+++ shadow/30073.tmp.665	2003-10-09 08:56:49.000000000 -0400
@@ -94,6 +94,27 @@
 
 
 ------- Additional Comments From vargaz@freemail.hu  2003-08-19 13:39 -------
 Created an attachment (id=5166)
 compiled testcase for people without VBC
 
+
+------- Additional Comments From vargaz@freemail.hu  2003-10-09 08:56 -------
+Here is a simpler testcase:
+
+using System;
+
+class Bug {
+
+        public static void Main () {
+                double d = 300.0;
+                checked {
+                        double [] arr = new double [(int)d];
+                }
+        }
+}
+
+
+The problem is in mono_emulate_opcode: when one expression contains
+more than one emulation, the code for the two emulations are appended
+to the end of the previous basic block in the wrong order, so the
+first one will reference variables defined in the second.