[Mono-bugs] [Bug 33421][Wis] New - checking float/double to int/short/byte/long conversion fails.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
7 Nov 2002 07:24:13 -0000
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 vi64pa@koti.soon.fi.
http://bugzilla.ximian.com/show_bug.cgi?id=33421
--- shadow/33421 Thu Nov 7 02:24:12 2002
+++ shadow/33421.tmp.4616 Thu Nov 7 02:24:12 2002
@@ -0,0 +1,70 @@
+Bug#: 33421
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vi64pa@koti.soon.fi
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: checking float/double to int/short/byte/long conversion fails.
+
+When I run the followin program:
+
+--
+using System;
+using System.Data;
+using
+System.Data.SqlTypes;
+
+namespace test
+{
+ public class tester
+ {
+ public
+tester() {}
+
+ public static void Main ()
+ {
+ float a = 1e20f;
+ try {
+ checked {
+ int i =
+(int)a;
+ }
+ } catch (Exception e) {
+ System.Console.WriteLine (e);
+ }
+ }
+ }
+}
+
+--
+
+
+I get following result:
+
+** (test.exe:1080): WARNING **: tree does not match in 00
+test.tester:Main ():
+0x0008
+(STIND_I4 ADDR_L[ESI|2] (CONV_OVF_I4 (LDIND_R4
+ADDR_L[1])))
+
+ (STIND_I4 ADDR_L[ESI|2] (CONV_OVF_I4 (LDIND_R4 ADDR_L[1])))
+
+BR
+
+** ERROR **: file emit-x86.c: line 734 (mono_label_cfg): should not be
+reached
+aborting...
+Aborted
+
+This happens if variable a is float or double, with
+other it work as it sould work.