[Mono-bugs] [Bug 47536][Nor] New - Pointers declared in "fixed" statement should read only
bugzilla-daemon@indri.ximian.com
bugzilla-daemon@indri.ximian.com
Mon, 11 Aug 2003 18:19:02 -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 lluis@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=47536
--- shadow/47536 2003-08-11 18:19:02.000000000 -0400
+++ shadow/47536.tmp.464 2003-08-11 18:19:02.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 47536
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lluis@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Pointers declared in "fixed" statement should read only
+
+Description of Problem:
+Pointers declared in "fixed" statement should read only. MCS must not allow
+modification of such pointers.
+
+Steps to reproduce the problem:
+Compile this:
+
+class A
+{
+ public static unsafe void Main ()
+ {
+ uint[] t = new uint [12];
+ fixed (uint* tt = t)
+ {
+ tt++;
+ }
+ }
+}
+
+Actual Results:
+Compilation succeeded.
+
+Expected Results:
+error CS1604: Cannot assign to 'tt' because it is read-only