[Mono-bugs] [Bug 36621][Wis] New - mcs fails compiling (unsafe)
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sun, 12 Jan 2003 05:26:39 -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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=36621
--- shadow/36621 Sun Jan 12 05:26:38 2003
+++ shadow/36621.tmp.8454 Sun Jan 12 05:26:38 2003
@@ -0,0 +1,36 @@
+Bug#: 36621
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs fails compiling (unsafe)
+
+compiling this program with mcs /unsafe:
+
+using System;
+
+class Bug {
+ static char *a;
+
+ public unsafe static void Main ()
+ {
+ a [0] = (char) 0;
+ }
+}
+
+produces:
+unsafe.cs(4) error CS0214: Pointers may only be used in an unsafe context
+Compilation failed: 1 error(s), 0 warnings
+
+while csc compiles it.