[Mono-bugs] [Bug 39196][Nor] New - mcs miscalculates maxstack
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 6 Mar 2003 11:15:54 -0500 (EST)
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 vargaz@freemail.hu.
http://bugzilla.ximian.com/show_bug.cgi?id=39196
--- shadow/39196 Thu Mar 6 11:15:54 2003
+++ shadow/39196.tmp.21057 Thu Mar 6 11:15:54 2003
@@ -0,0 +1,49 @@
+Bug#: 39196
+Product: Mono/MCS
+Version: unspecified
+OS: Debian Woody
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vargaz@freemail.hu
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs miscalculates maxstack
+
+When compiling the following program, mcs calculates 2 as maxstack for
+Main, which is clearly wrong:
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+
+class Bug {
+
+ static void foo (
+ Delegate func1,
+ Delegate func2,
+ Delegate func3,
+ Delegate func4,
+ Delegate func5)
+ {
+ }
+
+ public delegate void FooDelegate (object o);
+
+ public static void Foo (object o) {
+ }
+
+ static public void Main(string[] args) {
+ foo (
+ new FooDelegate (Foo),
+ new FooDelegate (Foo),
+ new FooDelegate (Foo),
+ new FooDelegate (Foo),
+ new FooDelegate (Foo));
+ }
+}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<