[Mono-bugs] [Bug 74953][Maj] Changed - [GMCS] Converting array to
IEnumerable<T>
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue May 17 10:07:20 EDT 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 martin at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74953
--- shadow/74953 2005-05-15 01:45:14.000000000 -0400
+++ shadow/74953.tmp.16769 2005-05-17 10:07:20.000000000 -0400
@@ -1,23 +1,23 @@
Bug#: 74953
-Product: Mono: Compilers
+Product: Mono: Runtime
Version: 1.1
OS: unknown
OS Details: Ubuntu Linux 5.05 (Hoary)
Status: NEW
Resolution:
Severity: Unknown
Priority: Major
-Component: C#
+Component: JIT
AssignedTo: martin at ximian.com
ReportedBy: emrysk at gmail.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: [GMCS] List<byte>.AddRange throws NullReferenceException
+Summary: [GMCS] Converting array to IEnumerable<T>
I'm using Mono 1.1.7 built from source on Ubuntu (Hoary).
The following is a working example. It throws a NullReferenceException
from AddRange.
@@ -72,6 +72,26 @@
{
foreach (T t in x) {
Console.WriteLine (t);
}
}
}
+
+------- Additional Comments From martin at ximian.com 2005-05-17 10:07 -------
+This is a runtime issue.
+csc generates
+
+====
+ .method private hidebysig static void Main() cil managed
+ {
+ .entrypoint
+ // Code size 12 (0xc)
+ .maxstack 8
+ IL_0000: ldc.i4.0
+ IL_0001: newarr [mscorlib]System.Byte
+ IL_0006: call void class X`1<uint8>::Y(class
+[mscorlib]System.Collections.Generic.IEnumerable`1<!0>)
+ IL_000b: ret
+ } // end of method X::Main
+====
+
+And this is working fine on the MS runtime, but crashes with mono.
More information about the mono-bugs
mailing list