[Mono-bugs] [Bug 47453][Wis] New - Problem with Reflection.Emit (?)

bugzilla-daemon@indri.ximian.com bugzilla-daemon@indri.ximian.com
Sun, 10 Aug 2003 08:49:17 -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 larsde@key2network.com.

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

--- shadow/47453	2003-08-10 08:49:17.000000000 -0400
+++ shadow/47453.tmp.15403	2003-08-10 08:49:17.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 47453
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: larsde@key2network.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problem with Reflection.Emit (?)
+
+Description of Problem:
+
+I'm not 100% sure where it fails, but I'll provide a link to the source 
+code which is located at the MSDN site as part of the TypeBuilder API 
+documentation, and the mcs/csc outputs.
+
+Steps to reproduce the problem:
+1. Compile the attached program.
+2. Run it with mono.
+
+Actual Results:
+
+D:\projects\StateMachine>mono TestILGenerator.exe
+---
+
+** (TestILGenerator.exe:1736): WARNING **: wrong maximal instruction 
+length of instruction mul.ovf.un (expected 12, got 16)
+
+abnormal program termination
+
+Expected Results:
+
+$ ./TestILGenerator.exe
+---
+(10, 10, 10) . (20, 20, 20) = 600
+
+How often does this happen? 
+
+Every time.
+
+Additional Information:
+
+The source code for the example was found here:
+
+http://msdn.microsoft.com/library/default.asp?url=/library/en-
+us/cpref/html/frlrfsystemreflectionemittypebuilderclasstopic.asp
+
+If the source code is somehow moved, I can provide the source.
+
+mcs and csc both compile the code correctly, it seems. It is the mono 
+runtime which fails. The .NET runtime can successfully execute the code 
+created by both csc and mcs.