[Mono-bugs] [Bug 76269][Nor] New - Incorrect fixed checks.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 29 02:09:42 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 miguel at ximian.com.

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

--- shadow/76269	2005-09-29 02:09:42.000000000 -0400
+++ shadow/76269.tmp.2621	2005-09-29 02:09:42.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 76269
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrect fixed checks.
+
+The following program should compile, use mcs -unsafe:
+
+mono$ cat b.cs
+using System.Runtime.InteropServices;
+
+    [StructLayout(LayoutKind.Explicit)]
+    public struct ColorBgra {
+            [FieldOffset(0)] public byte B;
+
+            unsafe void A ()
+            {
+                    fixed (byte *p = &B){
+                    }
+            }
+
+    }


More information about the mono-bugs mailing list