[Mono-bugs] [Bug 75862][Nor] Changed - Invalid IL code generated by mcs (implicit conversions from struct to int)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 23 05:19:15 EDT 2005


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 rharinath at novell.com.

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

--- shadow/75862	2005-08-20 10:36:16.000000000 -0400
+++ shadow/75862.tmp.25782	2005-08-23 05:19:14.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 75862
 Product: Mono: Compilers
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: C#
-AssignedTo: mono-bugs at ximian.com                            
+AssignedTo: rharinath at novell.com                            
 ReportedBy: joe at otee.dk               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary:  Invalid IL code generated by mcs when calling destructor
+Summary: Invalid IL code generated by mcs (implicit conversions from struct to int)
 
 Compile and run this sample. This will give you:
 ** ERROR **: Invalid IL code at IL0005 in Test:Main (): IL_0005: not       
 aborting...
 Abort trap
 
@@ -39,6 +39,13 @@
 	static private LayerMask test;
 	static public void Main ()
 	{
 		LayerMask a = ~test;
 	}
 }
+
+------- Additional Comments From rharinath at novell.com  2005-08-23 05:19 -------
+It's not calling the destructor, but bitwise complement operator.
+
+However, the emitted code is missing a call to the conversion function
+from struct to int before applying the complement operator.
+


More information about the mono-bugs mailing list