[Mono-bugs] [Bug 66517][Cos] New - inaccurate error message given regarding SizeOf

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 21 Sep 2004 20:45:46 -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 joe.gasiorek@gmail.com.

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

--- shadow/66517	2004-09-21 20:45:46.000000000 -0400
+++ shadow/66517.tmp.1852	2004-09-21 20:45:46.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 66517
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: joe.gasiorek@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: inaccurate error message given regarding SizeOf
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:  When compiling code using the unsafe 'sizeof'
+method the following error message is given:
+error CS0233: Sizeof may only be used in an unsafe context (consider using
+System.Runtime.InteropServices.Marshal.Sizeof
+
+The method should be 'System.Runtime.InteropServices.Marshal.SizeOf'.
+
+
+Steps to reproduce the problem:
+1. Compile code incorrectly using 'sizeof'
+2. Receive error message from mcs
+3. 
+
+Actual Results:
+Error Message: 
+error CS0233: Sizeof may only be used in an unsafe context (consider using
+System.Runtime.InteropServices.Marshal.Sizeof 
+
+Expected Results:
+Error Message:
+error CS0233: Sizeof may only be used in an unsafe context (consider using
+System.Runtime.InteropServices.Marshal.SizeOf
+
+
+How often does this happen? 
+Everytime
+
+Additional Information:
+Patch will be attached.