[Mono-bugs] [Bug 75691][Nor] New - [GMCS] System.Array.ForEach
contains invalid IL
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Aug 2 13:35:18 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 nazgul at omega.pl.
http://bugzilla.ximian.com/show_bug.cgi?id=75691
--- shadow/75691 2005-08-02 13:35:18.000000000 -0400
+++ shadow/75691.tmp.18526 2005-08-02 13:35:18.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 75691
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details: mono svn
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: nazgul at omega.pl
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [GMCS] System.Array.ForEach contains invalid IL
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I got error from runtime about invalid IL in System.Array.ForEach.
+
+Steps to reproduce the problem:
+1. Compile following program
+
+class M {
+ static void p (string x) {
+ System.Console.WriteLine (x);
+ }
+
+ static void Main () {
+ string[] arr = new string[] { "a", "b", "c" };
+ System.Array.ForEach (arr, p);
+ }
+}
+
+2. Run it
+
+Actual Results:
+** ERROR **: Invalid IL code at IL0045 in System.Array:ForEach
+(string[],System.Action`1): IL_0045: pop
+
+
+Expected Results:
+a
+b
+c
+
+How often does this happen?
+Always
+
+Additional Information:
More information about the mono-bugs
mailing list