[Mono-bugs] [Bug 57151][Nor] New - We do not report CS0625
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 16 Apr 2004 14:15:39 -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 vargaz@freemail.hu.
http://bugzilla.ximian.com/show_bug.cgi?id=57151
--- shadow/57151 2004-04-16 14:15:39.000000000 -0400
+++ shadow/57151.tmp.7872 2004-04-16 14:15:39.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 57151
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vargaz@freemail.hu
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: We do not report CS0625
+
+mcs does not report the CS0625: Instance field types marked with
+StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute.
+
+Testcase:
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+using System.Runtime.InteropServices;
+
+[StructLayout(LayoutKind.Explicit)]
+struct GValue {
+ public string name;
+ [ FieldOffset (4) ] public int value;
+}
+
+[StructLayout(LayoutKind.Explicit)]
+struct GValue2 {
+ public static int foo;
+}
+
+class Tests {
+
+ public static void Main () {
+ }
+}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<