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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 28 Oct 2003 07:47:52 -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 dick@ximian.com.

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

--- shadow/50231	2003-10-28 07:47:52.000000000 -0500
+++ shadow/50231.tmp.9496	2003-10-28 07:47:52.000000000 -0500
@@ -0,0 +1,33 @@
+Bug#: 50231
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+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