[Mono-bugs] [Bug 49011][Min] New - mcs does not report CS0221

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 29 Sep 2003 05:37:04 -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 vargaz@freemail.hu.

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

--- shadow/49011	2003-09-29 05:37:03.000000000 -0400
+++ shadow/49011.tmp.763	2003-09-29 05:37:03.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 49011
+Product: Mono/MCS
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not report CS0221
+
+When compiling the program below, csc (from Net 1.1) reports the
+following:
+
+bug10.cs(3,30): error CS0221: Constant value '-1.#IND' cannot be converted
+to a 'int' (use 'unchecked' syntax to override)
+
+while mcs compiles it just fine.
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+class t {
+        static void Main () {
+                System.Console.WriteLine ((int)double.NaN);
+        }
+}
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<