[Mono-bugs] [Bug 36055][Wis] Changed - Taking the address of unfixed expression should not compile

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 21 Jan 2003 12:56:43 -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=36055

--- shadow/36055	Tue Jan 21 01:23:42 2003
+++ shadow/36055.tmp.22250	Tue Jan 21 12:56:43 2003
@@ -1,12 +1,12 @@
 Bug#: 36055
 Product: Mono/MCS
 Version: unspecified
 OS: other
 OS Details: 
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Wishlist
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: raciel@es.gnu.org               
@@ -46,6 +46,13 @@
              fixed (int *p=&d.x) *p=3;
              Console.WriteLine ("{0}", d.x);
 
 ------- Additional Comments From miguel@ximian.com  2003-01-21 01:23 -------
 Until we have a program that breaks with MCS but works with CSC, I am
 settings this to NEEDINFO
+
+------- Additional Comments From gonzalo@ximian.com  2003-01-21 12:56 -------
+The initial code by raciel compiles with mcs and should not.
+
+csc says:
+bug36055.cs(12,32): error CS0212: You can only take the address of
+unfixed expression inside of a fixed statement initializer.