[Mono-bugs] [Bug 45762][Nor] New - Missing cast on void* to int conversions.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Wed, 2 Jul 2003 21:32:14 -0400 (EDT)
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=45762
--- shadow/45762 Wed Jul 2 21:32:14 2003
+++ shadow/45762.tmp.16980 Wed Jul 2 21:32:14 2003
@@ -0,0 +1,39 @@
+Bug#: 45762
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Missing cast on void* to int conversions.
+
+We generate incorrect code for:
+
+using System;
+unsafe class X{
+ public static int A (void *value)
+ {
+ return (int) value;
+ }
+static void Main () {
+}
+
+}
+
+CSC generates:
+ IL_0000: ldarg.0
+ IL_0001: conv.i4
+ IL_0002: ret
+
+We generate:
+ IL_0000: ldarg.0
+ IL_0001: ret