[Mono-bugs] [Bug 57043][Nor] New - Can not rountrip binary

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 15 Apr 2004 00:57:43 -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=57043

--- shadow/57043	2004-04-15 00:57:43.000000000 -0400
+++ shadow/57043.tmp.21302	2004-04-15 00:57:43.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 57043
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Can not rountrip binary
+
+I get a crash trying to rountrip a program, it works with MS IL assembler:
+
+mono$ ilasm yy.il
+Assembling 'yy.il' , no listing file, to exe --> 'yy.exe'
+Error at: line (3) column (18)
+System.InvalidCastException: Cannot cast from source type to destination type.
+in <0x0024b> DriverMain:Run ()
+in <0x0004a> Mono.ILASM.Driver:Main (string[])
+
+Error while compiling.
+
+The file contains:
+.assembly extern mscorlib
+{
+  .ver 1:0:3300:0
+}
+.assembly 'yy'
+{
+  .hash algorithm 0x00008004
+  .ver  0:0:0:0
+}