[Mono-bugs] [Bug 31697][Nor] New - mcs generates incorrect code for base() constructor calls using varargs
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
3 Oct 2002 18:21:03 -0000
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 vladimir@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=31697
--- shadow/31697 Thu Oct 3 14:21:03 2002
+++ shadow/31697.tmp.22845 Thu Oct 3 14:21:03 2002
@@ -0,0 +1,44 @@
+Bug#: 31697
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vladimir@pobox.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs generates incorrect code for base() constructor calls using varargs
+
+Given:
+
+/** start **/
+public class BarBase {
+ public BarBase (params int[] args) {
+ }
+}
+
+public class Bar : BarBase {
+ public Bar ()
+ : base ((int)0, (int)1)
+ {
+
+ }
+
+ static int Main (string [] args)
+ {
+ Bar bar = new Bar ();
+ return 0;
+ }
+}
+
+/** end **/
+
+mcs will generate a normal 2-parameter function call to BarBase:.ctor
+instead of creating an array to hold the args and passing it correctly.