[Mono-bugs] [Bug 33531][Nor] Changed - incorrect code generated on array store

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
20 Nov 2002 12:42:10 -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 martin@ximian.com.

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

--- shadow/33531	Mon Nov 18 11:25:22 2002
+++ shadow/33531.tmp.324	Wed Nov 20 07:42:10 2002
@@ -44,6 +44,39 @@
 
 ------- Additional Comments From lupus@ximian.com  2002-11-18 11:25 -------
 This is a mcs bug, it produces invalid IL code when run either on the
 mono or ms runtime. PVErify says:
 [IL]: Error: [g:\mono\regb.exe : regBug+foo::get_Types] [offset
 0x0000000F] [opcode stelem.i4] Stack underflow.
+
+------- Additional Comments From martin@ximian.com  2002-11-20 07:42 -------
+Adding the testcase here so I can print the bug report on a single 
+sheet of paper ;-)
+=======
+using System;
+
+ public enum XPathResultType
+{ Number = 0,
+  String = 1 }
+
+class regBug {
+
+  public static void Main() {
+    foo f = new foo();
+    XPathResultType [] t = f.Types;
+  }
+
+  internal abstract class bar 
+  {
+    public abstract XPathResultType [] Types { get; }
+
+  }
+  
+  internal class foo : bar 
+  {
+    public override XPathResultType [] Types { get { return new 
+XPathResultType [] { 
+XPathResultType.Number,XPathResultType.String};}}
+  }
+}
+
+