[Mono-bugs] [Bug 42662][Nor] New - mcs miscompiles sbyte addition in checked context

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 9 May 2003 08:40:22 -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=42662

--- shadow/42662	Fri May  9 08:40:22 2003
+++ shadow/42662.tmp.27756	Fri May  9 08:40:22 2003
@@ -0,0 +1,33 @@
+Bug#: 42662
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs miscompiles sbyte addition in checked context
+
+mcs miscompiles the following code:
+
+checked {
+  sbyte a = 127;
+  sbyte t = a++;
+}
+
+This causes exception6.exe to fail. 
+
+MS CSC generates:
+   add.ovf
+   conv.ovf.i1
+
+while MCS generates:
+   add.ovf