[Mono-bugs] [Bug 55318][Nor] New - Invalid error CS0214 when compiling unsafe code in an unsafe context

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 8 Mar 2004 14:25:13 -0500 (EST)


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 gert.driesen@pandora.be.

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

--- shadow/55318	2004-03-08 14:25:13.000000000 -0500
+++ shadow/55318.tmp.14990	2004-03-08 14:25:13.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 55318
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid error CS0214 when compiling unsafe code in an unsafe context
+
+mcs reports this error
+
+unsafe.cs(4) error CS0214: Pointers may only be used in an unsafe context
+Compilation failed: 1 error(s), 0 warnings
+
+when compiling the following unsafe code using the --unsafe option :
+
+using System;
+                                                                          
+     
+namespace UnsafeTest {
+        public interface IUnsafe {
+                Int32* GetIntPointer();
+        }
+}
+
+this compiles without error on MS.NET, and I can reproduce the error on
+Mono/Linux cvs and Mono/Windows 0.30.