[Mono-bugs] [Bug 26506][Nor] Changed - Wrong branch target with loops and void-returning methods

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
8 Jul 2002 14:42:36 -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 lupus@ximian.com.

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

--- shadow/26506	Thu Jun 20 04:49:27 2002
+++ shadow/26506.tmp.2584	Mon Jul  8 10:42:36 2002
@@ -1,12 +1,12 @@
 Bug#: 26506
 Product: Mono/MCS
 Version: unspecified
 OS: other
 OS Details: 
-Status: NEW   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: lupus@ximian.com               
@@ -48,6 +48,14 @@
         void stuff2 () {
         }
         static void Main() {
         }
 }
 
+
+------- Additional Comments From lupus@ximian.com  2002-07-08 10:42 -------
+The loop issue is fixed in the latest mcs, but the try/finally
+generated one is not. Here, basically, the Reflection API causes the
+reflection implementation to insert a leave opcode at the end of the
+try block that points at the end of the try/finally blocks.
+mcs needs to make sure there is some code there, or add an explicit
+ret. This happens with either the mono or ms runtime.