[Mono-bugs] [Bug 79784][Nor] New - Invalid IL code in System.Nullable::Equals

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Oct 30 01:28:11 EST 2006


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 klr-un at comcast.net.

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

--- shadow/79784	2006-10-30 01:28:11.000000000 -0500
+++ shadow/79784.tmp.497	2006-10-30 01:28:11.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 79784
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 2000 SP4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: klr-un at comcast.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid IL code in System.Nullable::Equals
+
+Description of Problem:
+Execution of System.Nullable::Equals results in Invalid IL code exception.
+
+Steps to reproduce the problem:
+1. Assemble and run the code attached.
+
+Actual Results:  (output:)
+Unhandled Exception: System.InvalidProgramException: Invalid IL code in
+System.Nullable:Equals (System.Nullable`1,System.Nullable`1): IL_0003: call
+     0x0a000137
+  at <0x00000> <unknown method>
+  at NULLABLE_ERROR.main () [0x00000]
+
+
+Expected Results:  (output:)
+True
+
+
+How often does this happen? 
+Consistently
+
+Additional Information:
+
+//############## BEGIN ##############\\
+
+.assembly extern mscorlib {}
+
+.assembly  TESTPROG {}
+
+.module TESTPROG.exe
+.subsystem 0x00000003
+
+
+.class public NULLABLE_ERROR
+        extends [mscorlib]System.Object
+{
+  .method public static
+        void main() cil managed
+  {
+    .entrypoint
+    .locals init (
+              [0] valuetype [mscorlib]System.Nullable`1<int32>  nilV)
+    .maxstack             2    // codesize=29 (16#1D)
+              ldloc.0          //nilV
+              ldloc.0          //nilV
+              call       bool  [mscorlib]System.Nullable::Equals<int32>
+(valuetype [mscorlib]System.Nullable`1<!!0>, valuetype
+[mscorlib]System.Nullable`1<!!0>)
+              call       void  [mscorlib]System.Console::WriteLine (bool)
+              ret
+  } // void  NULLABLE_ERROR::main()
+
+} // NULLABLE_ERROR
+//############## END ##############\\


More information about the mono-bugs mailing list