[Mono-bugs] [Bug 79346][Blo] New - Generic code crashes the compiler.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Sep 9 15:11:39 EDT 2006


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=79346

--- shadow/79346	2006-09-09 15:11:39.000000000 -0400
+++ shadow/79346.tmp.8272	2006-09-09 15:11:39.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 79346
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: JIT
+AssignedTo: lupus at ximian.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Generic code crashes the compiler.
+
+The attached executable (compiled on MS from the following source code)
+crashes the Mono VM.
+
+Our C# compiler is unable to compile this currently.
+
+using System;
+using System.Collections.Generic;
+
+interface I {
+    void D ();
+}
+
+class X : I {
+        static void Main ()
+        {
+            List<object> l = new List<object> ();
+            List<I> i = new List<I> ();
+
+            i.Add (new X());
+
+            l.AddRange (i.ToArray());
+
+        }
+
+    public void D () {}
+}


More information about the mono-bugs mailing list