[Mono-bugs] [Bug 75945][Nor] New - mcs emits I4 as the default ArraySubType

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 31 09:30:43 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 jankit at novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75945

--- shadow/75945	2005-08-31 09:30:43.000000000 -0400
+++ shadow/75945.tmp.22459	2005-08-31 09:30:43.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 75945
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jankit at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs emits I4 as the default ArraySubType
+
+test case:
+
+    public extern static void marshalAsMethod (
+                [MarshalAs(UnmanagedType.LPArray)] int [] p1);
+
+For param p1 no ArraySubType is specified. compiling with mcs and
+monodis'ing it shows:
+
+radical at jankit:~> monodis --marshal r.dll
+FieldMarshal Table (1..1)
+1: (0x0003) Param 1: []
+        blob encoding: 2a 07 ---> (07 - NATIVE_TYPE_I4)
+
+csc and then monodis :
+
+radical at jankit:~> monodis --marshal r-n.dll
+FieldMarshal Table (1..1)
+1: (0x0003) Param 1: []
+        blob encoding: 2a 50 ---> (50, NATIVE_TYPE_MAX)
+
+Attached is the test case(.cs)


More information about the mono-bugs mailing list