[Mono-bugs] [Bug 76644][Nor] New - [GMCS] Compiler/runtime assertion while compiling code

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 7 16:34:01 EST 2005


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 at ximian.com.

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

--- shadow/76644	2005-11-07 16:34:01.000000000 -0500
+++ shadow/76644.tmp.25842	2005-11-07 16:34:01.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 76644
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: martin at ximian.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Compiler/runtime assertion while compiling code
+
+The following program makes the runtime produce an assert:
+
+
+  public class Set<Element> {
+    protected readonly Node[] sub;
+    public Set () { }
+    public struct Locator {
+      public delegate void Replace (Node node);
+      public Locator (Replace put) { }
+    }
+    public class Node : Set<Element> {
+    }
+    protected Locator locate (Element x) {
+      Set<Element> parent = this;
+          return new Locator(
+            new Locator.Replace(delegate (Node n) {
+              parent.sub[0] = n;
+            }));
+    }
+  }
+  static class SetTest {
+    static void Main (string[] args) {
+    }
+  }
+
+This produces:
+
+** ERROR **: file metadata.c: line 2935 (mono_type_size): assertion failed:
+(!gclass->generic_class.inst->is_open)
+aborting...
+Aborted


More information about the mono-bugs mailing list