[Mono-bugs] [Bug 74873][Nor] New - Mono 1.1.7 C# compiler breaks on dead code

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 8 May 2005 16:39:38 -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 dsd@gentoo.org.

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

--- shadow/74873	2005-05-08 16:39:38.000000000 -0400
+++ shadow/74873.tmp.31302	2005-05-08 16:39:38.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 74873
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: Gentoo Linux, Linux 2.6.12-rc3, NPTL
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dsd@gentoo.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono 1.1.7 C# compiler breaks on dead code
+
+If code exists in a method after a "return" statement, this causes invalid
+compilation of the file - it complains at runtime when that method is used.
+
+When running the test-case, I get:
+** ERROR **: Invalid IL code at IL0004 in DeadCode:SomeFunc (string):
+IL_0004: bgt.un    IL_1424a5c
+
+
+aborting...
+Aborted
+
+
+I'm fairly sure (but completely sure!) that this problem was introduced
+somewhere between Mono 1.1.6 and 1.1.7