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 [EMAIL PROTECTED]

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

--- shadow/75862        2005-08-20 10:36:16.000000000 -0400
+++ shadow/75862.tmp.32751      2005-08-20 10:36:16.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 75862
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary:  Invalid IL code generated by mcs when calling destructor
+
+Compile and run this sample. This will give you:
+** ERROR **: Invalid IL code at IL0005 in Test:Main (): IL_0005: not       
+aborting...
+Abort trap
+
+I presume the mcs should give a compile error, but it could also be a runtime 
problem.
+
+
+
+using System;
+public struct LayerMask
+{
+       private ushort mask;
+       public static implicit operator int (LayerMask mask) { return 
(int)mask.mask; }
+       public static implicit operator LayerMask (int intVal) { LayerMask 
mask; mask.mask = 
+unchecked ((ushort)intVal); return mask; }
+}
+
+class Test
+{
+       static private LayerMask test;
+       static public void Main ()
+       {
+               LayerMask a = ~test;
+       }
+}
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to