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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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 {} + } + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
