[Mono-bugs] [Bug 62232][Wis] New - We don't report cs0208
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 1 Aug 2004 13:54:22 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=62232
--- shadow/62232 2004-08-01 13:54:22.000000000 -0400
+++ shadow/62232.tmp.15154 2004-08-01 13:54:22.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 62232
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: We don't report cs0208
+
+This code should not compile:
+
+unsafe struct X {
+ string a;
+ static void Main () {
+ X x;
+ X* y = &x;
+ }
+}
+
+Microsoft (R) Visual C# .NET Compiler version 8.00.40426.16
+for Microsoft (R) Windows (R) .NET Framework version 2.0.40426
+Copyright (C) Microsoft Corporation 2001-2003. All rights reserved.
+
+t.cs(5,3): error CS0208: Cannot take the address of, get the size of, or
+declare a pointer to a managed type ('X')
+t.cs(1,15): (Location of symbol related to previous error)
+t.cs(5,10): error CS0208: Cannot take the address of, get the size of, or
+declare a pointer to a managed type ('X')