You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ILVerify fails to verify some catch-to-try leave instructions #48250
Priority:3Work that is nice to havearea-Tools-ILVerificationIssues related to ilverify tool and IL verification in generalhelp wanted[up-for-grabs] Good issue for external contributors
If the assembly is executed on .NET 5 (by invoking its Main method), it produces the expected output without any errors.
The assembly contains two static methods A.m1 and A.m2. Both contain leave instructions that jump from a catch block to its associated try block, which is legal according to ECMA-335, section I.12.4.2.8.2.8.
ILVerify correctly verifies the leave in A.m1. In A.m2, the catch block and the try block to which it jumps to are nested in another try block which has a finally block, which triggers the bug.
Priority:3Work that is nice to havearea-Tools-ILVerificationIssues related to ilverify tool and IL verification in generalhelp wanted[up-for-grabs] Good issue for external contributors
Activity
JulieLeeMSFT commentedon Jul 27, 2021
Moving to future since ILVerify is preview feature.