[Mono-bugs] [Bug 61801][Wis] Changed - Incorrect exception ordering with stelem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Jul 2004 16:29:40 -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 bmaurer@users.sf.net.

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

--- shadow/61801	2004-07-21 16:22:53.000000000 -0400
+++ shadow/61801.tmp.27041	2004-07-21 16:29:40.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 61801
 Product: Mono: Runtime
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bmaurer@users.sf.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -31,6 +31,26 @@
 The ir for this method looks like:
 
  (stind.i4 (ldelema (ldind.ref regvar[%edi]) iconst[5]) (div (ldind.i4
 (ldelema (ldind.ref regvar[%edi]) iconst[0])) iconst[0]))
 
 we emit the LHS of stind before the RHS is emitted.
+
+------- Additional Comments From bmaurer@users.sf.net  2004-07-21 16:29 -------
+This problem isn't only limited to array stores:
+
+class T {
+	X x;
+	static T t = null;
+	static int foo;
+	static void Main () {
+		t.x.x = foo / 0;
+	}
+}
+
+class X {
+	public int x;
+}
+
+This program shold throw division by 0 but throws a nullref. Note that
+we get away with some problems because we end up emitting a mov DWORD
+PTR [0], result