Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mono] Fix swift lowering for InlineArray when static field occurs before instance field #108522

Closed
jkurdek opened this issue Oct 3, 2024 · 2 comments · Fixed by #108546
Closed
Assignees
Labels
area-Interop-mono in-pr There is an active PR which will close this issue when it is merged os-ios Apple iOS os-tvos Apple tvOS

Comments

@jkurdek
Copy link
Member

jkurdek commented Oct 3, 2024

Swift struct lowering algorithm on Mono fails when dealing with an InlineArray struct, which contains a static field before instance field. The result is a runtime crash.

Example of failing struct:

[InlineArray(16)]
struct Foo
{
  private static int someField = 1;
  internal byte payload;
}

Discovered in #108318

\cc @kotlarmilos

Copy link
Contributor

Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Tagging subscribers to 'os-tvos': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Oct 3, 2024
@jkurdek jkurdek removed the untriaged New issue has not been triaged by the area owner label Oct 4, 2024
@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Oct 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-mono in-pr There is an active PR which will close this issue when it is merged os-ios Apple iOS os-tvos Apple tvOS
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant