[Mono-bugs] [Bug 68534][Nor] New - Mono ilasm fails on pinvoke declaration
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 18 Oct 2004 18:45:07 -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 karl@waclawek.net.
http://bugzilla.ximian.com/show_bug.cgi?id=68534
--- shadow/68534 2004-10-18 18:45:06.000000000 -0400
+++ shadow/68534.tmp.1124 2004-10-18 18:45:06.000000000 -0400
@@ -0,0 +1,58 @@
+Bug#: 68534
+Product: Mono: Compilers
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: karl@waclawek.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono ilasm fails on pinvoke declaration
+
+Description of Problem:
+=======================
+
+Put a declaration similar to this into an IL file:
+
+ .method public hidebysig static pinvokeimpl("libexpatw.dll"
+as "XML_Parse" unicode cdecl)
+ valuetype Kds.Xml.Expat.XMLStatus
+ XMLParse(valuetype Kds.Xml.Expat.XMLParser* parser,
+ [in] unsigned int8[] marshal([]) s,
+ int32 len,
+ int32 isFinal) cil managed preservesig
+ { // line 1859 in my actual file
+ }
+
+Compiling with ilasm under Mono 1.0.2 will fail, but not under MS.NET 1.1.
+
+Actual Results:
+===============
+
+ilasm /output:Expatinterop.dll /dll ExpatInterop.il
+Assembling 'ExpatInterop.il' , no listing file, to dll --
+> 'Expatinterop.dll'
+
+Error at: line (1859) column (6)
+
+***** FAILURE *****
+
+
+Expected Results:
+=================
+
+Successful compilation.
+
+
+
+Additional Information:
+=======================
+
+I can provide the actual IL file, if needed.