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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75861 --- shadow/75861 2005-08-20 09:19:30.000000000 -0400 +++ shadow/75861.tmp.30623 2005-08-20 09:19:30.000000000 -0400 @@ -0,0 +1,41 @@ +Bug#: 75861 +Product: Mono: Compilers +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: CS0233 is not reported for using sizeof + +mcs does not report error CS0233 when sizeof is not used in an unsafe +context. + +To reproduce, compile the following code snippet: + +using System; + +public class Test +{ + public static void Main () + { + Console.WriteLine (sizeof (short)); + } +} + +Actual result: + +Successful compilation + +Expected result: + +test.cs(7,22): error CS0233: sizeof can only be used in an unsafe context + (consider using System.Runtime.InteropServices.Marshal.SizeOf) _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
