[Mono-bugs] [Bug 58462][Wis] New - ilasm literal value gets lost

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 May 2004 16:27:13 -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 ck@carlo-kok.com.

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

--- shadow/58462	2004-05-13 16:27:13.000000000 -0400
+++ shadow/58462.tmp.30007	2004-05-13 16:27:13.000000000 -0400
@@ -0,0 +1,77 @@
+Bug#: 58462
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ck@carlo-kok.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ilasm literal value gets lost
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+when compiling the .il file in the "Additional Information" section and
+later decompiling it, the value for the literal (constant field) is lost.
+
+Steps to reproduce the problem:
+1. ilasm filename.il
+2. monodis filenam.exe
+   (or alternatively use the Microsoft disasm)
+3. 
+
+Actual Results:
+  .field public static  literal   string 'test' = "" (monodis)
+  .field public static  literal   string test  (ms ildasm)
+
+Expected Results:
+  .field public literal static string test = "ABCDEF"
+
+
+How often does this happen? 
+  Always.
+
+Additional Information:
+
+.assembly extern mscorlib
+{
+  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         //
+.z\V.4..
+  .ver 1:0:5000:0
+}
+.assembly mc
+{
+  .hash algorithm 0x00008004
+  .ver 0:0:0:0
+}
+.module mc.exe
+
+.class public auto ansi beforefieldinit test
+       extends [mscorlib]System.Object
+{
+  .field public literal static string test = "ABCDEF"
+  .method public hidebysig static void  Main() cil managed
+  {
+    .entrypoint
+    ret
+  } // end of method test::Main
+
+  .method public hidebysig specialname rtspecialname instance void  .ctor()
+cil managed
+  {
+    .maxstack  1
+    ldarg.0
+    call       instance void [mscorlib]System.Object::.ctor()
+    ret
+  } // end of method test::.ctor
+
+} // end of class test