[Mono-bugs] [Bug 57895][Maj] New - Invalid IL code for simple statement

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 30 Apr 2004 10:16:45 -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 reg@nyda.info.

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

--- shadow/57895	2004-04-30 10:16:45.000000000 -0400
+++ shadow/57895.tmp.11382	2004-04-30 10:16:45.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 57895
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: reg@nyda.info               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid IL code for simple statement
+
+Description of Problem:
+(latest mono release, not cvs): mcs generates invalid IL code.
+
+
+Steps to reproduce the problem:
+1. paste provided testcase to file Main.cs
+2. compile and run it
+
+
+Actual Results:
+** ERROR **: Invalid IL code at IL 000e in MainClass:Main (string[]):
+IL_000e: and
+
+
+Expected Results:
+Either compiletime error CS0019 or output "No invalid IL for you?". Not
+sure which one.
+
+
+How often does this happen? 
+Always.
+
+
+Additional Information:
+Simple testcase:
+
+using System;
+
+class MainClass {
+  public static void Main(string[] args) {
+    float fMag= 0;
+    if (fMag & 0x80000000 == 0)
+      Console.WriteLine("No invalid IL for you?");
+  }
+}