Skip to content

Fix recursive inline member ordering in optimizer - #20111

Draft
majocha wants to merge 19 commits into
dotnet:mainfrom
majocha:fix-20085
Draft

Fix recursive inline member ordering in optimizer#20111
majocha wants to merge 19 commits into
dotnet:mainfrom
majocha:fix-20085

Conversation

@majocha

@majocha majocha commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

No proof that this fixes #20085

However it does handle few older member-ordering examples from #1565.

Recursive inline members were still optimized in declaration order, so a caller could try to inline a later sibling before that sibling had been published to the optimization environment. This orders recursive bindings by the dependencies the optimizer can observe, preserves source order in the emitted tree, and adds regression coverage for #1565.

Checklist

  • Test cases added

majocha and others added 8 commits August 1, 2026 13:12
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
majocha and others added 11 commits August 2, 2026 09:41
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

Intermittent FS1116/FS1118 "Failed to inline the value 'Source'" for cross-assembly overloaded inline members under parallel compilation

1 participant