[Mono-bugs] [Bug 27285][Nor] New - newarr takes a native int or int32
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
1 Jul 2002 11:17:53 -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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=27285
--- shadow/27285 Mon Jul 1 07:17:53 2002
+++ shadow/27285.tmp.23075 Mon Jul 1 07:17:53 2002
@@ -0,0 +1,29 @@
+Bug#: 27285
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: newarr takes a native int or int32
+
+The following program compiled on either runtime produces invalid code:
+class T {
+ static int Main() {
+ char[] a;
+ long len = 10;
+ a = new char [len];
+ return 0;
+ }
+}
+The long value needs to be converted before the newarr opcode
+(csc uses conv.ovf.u4).