[Mono-bugs] [Bug 78422][Wis] New - [REGRESSION] Parsing unsafe pointer value assignment

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 16 16:55:16 EDT 2006

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 grompf at sublimeintervention.com.


--- shadow/78422	2006-05-16 16:55:16.000000000 -0400
+++ shadow/78422.tmp.27779	2006-05-16 16:55:16.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 78422
+Product: Mono: Compilers
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: grompf at sublimeintervention.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: [REGRESSION] Parsing unsafe pointer value assignment
+The following code compiles on MS.net and used to compile on mono:
+unsafe class T{
+        void B () {
+                void *p;
+                (int)*(int *)((int)p) = 0;
+        }
+mcs and gmcs now report:
+t.cs(4,25): error CS0131: The left-hand side of an assignment or mutating operation must be a 
+variable, property or indexer
+Compilation failed: 1 error(s), 0 warnings

More information about the mono-bugs mailing list