[Mono-bugs] [Bug 82666][Nor] New - yield break in try/catch creates unverifiable code
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Sep 2 18:45:47 EDT 2007
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 monobugs at sharifibrahim.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82666
--- shadow/82666 2007-09-02 18:45:47.000000000 -0400
+++ shadow/82666.tmp.13514 2007-09-02 18:45:47.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 82666
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: monobugs at sharifibrahim.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: yield break in try/catch creates unverifiable code
+
+When compiling the test program with gmcs, the resulting assembly is not
+verifiable with peverify on MS.NET. When compiled with csc, the assembly
+can be verified without error. I am using Mono from the latest SVN (r85197).
+
+Steps to reproduce the problem:
+1. Compile test program with gmcs
+2. Attempt to verify IL with PEVerify on MS.NET
+
+Actual Results:
+[IL]: Error: [TestCaseGMCS.dll :
+TestCase.TestClass+<>c__CompilerGenerated0::MoveNext][offset 0x0000000C]
+Branch out of try block.
+1 Error Verifying TestCaseGMCS.dll
+
+Expected Results:
+Successful verification
+
+How often does this happen?
+Every time.
+
+Additional information:
+Test program:
+
+using System.Collections;
+
+namespace TestCase
+{
+ class TestClass
+ {
+ public static IEnumerable TestMethod()
+ {
+ try
+ {
+ yield break;
+ }
+ finally {}
+ }
+ }
+}
More information about the mono-bugs
mailing list