[Mono-bugs] [Bug 50231][Nor] New - mcs does not report CS0213

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 7 Feb 2004 12:40:50 -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 miguel@ximian.com.

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

--- shadow/50231	2004-02-07 12:40:50.000000000 -0500
+++ shadow/50231.tmp.21430	2004-02-07 12:40:50.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 50231
+Product: Mono/Compilers
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dick@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not report CS0213
+
+This code from class/System.Drawing/System.Drawing.Imaging/JPEGCodec.cs
+causes an error when compiled with csc, but not mcs.
+
+unsafe {
+        fixed (void **p = &outbuf.JSAMPLE0){
+                for (int i = 0; i < rec_outbuf_height; i++){
+                        p [i] = start;
+                        start += stride;
+                }
+        }
+}
+
+
+System.Drawing.Imaging\JPEGCodec.cs(707,24): error CS0213: You do not need
+to use the fixed statement to take the address of an already fixed expression
+
+------- Additional Comments From bmaurer@users.sf.net  2003-11-18 12:56 -------
+*** Bug 50533 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From gonzalo@ximian.com  2003-12-02 15:51 -------
+*** Bug 50533 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From gonzalo@ximian.com  2003-12-02 15:52 -------
+Full test case in bug #50533