Skip to content

Fix infinite-loop ILVerify crash - #2756

Merged
DavidObando merged 1 commit into
mainfrom
fix/2747-infinite-loop-il
Jul 22, 2026
Merged

Fix infinite-loop ILVerify crash#2756
DavidObando merged 1 commit into
mainfrom
fix/2747-infinite-loop-il

Conversation

@DavidObando

Copy link
Copy Markdown
Owner

Fixes #2747

Fold literal conditional gotos during emission so while true uses an unconditional back-edge instead of exposing an impossible fallthrough at the end of a non-void method. Adds runtime and ILVerify coverage for the cycle-13 failure shape.

Targeted regression tests pass. The isolated full Compiler.Tests run passed 3,383 tests; 19 environment-dependent tests could not locate the separately built Gsharp.Extensions.dll and are left to the complete CI build.

Fixes #2747

Copilot-Session: d27ee0ef-46db-423b-93dc-db64f8eae1ff
@DavidObando
DavidObando merged commit d62b152 into main Jul 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gsc: infinite while-true loop emission crashes dotnet-ilverify

1 participant