[Mono-bugs] [Bug 43731][Nor] New - a field of a pointer type needs unsafe context

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 27 May 2003 11:33:00 -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 lupus@ximian.com.

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

--- shadow/43731	Tue May 27 11:33:00 2003
+++ shadow/43731.tmp.1388	Tue May 27 11:33:00 2003
@@ -0,0 +1,30 @@
+Bug#: 43731
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: a field of a pointer type needs unsafe context
+
+mcs /unsafe compiles the following program, but it should not (it should
+required the use of the unsafe keyword in the program).
+csc reports:
+pointer-field.cs(4,7): error CS0214: Pointers may only be used in an unsafe
+context
+
+using System;
+struct Foo {
+        Foo* previous;
+        public static void Main () {
+        }
+}