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

cgen: fix array of array fixed assignment #20133

Merged
merged 2 commits into from
Dec 10, 2023

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Dec 9, 2023

Fix #20130

🤖[deprecated] Generated by Copilot at 4250f7c

Fix code generation bugs for array map assignments and add a test case. The fixes prevent segmentation faults and compilation errors when assigning values to array maps of different kinds, including fixed arrays. The test case is in vlib/v/tests/array_with_fixed_array_test.v.

🤖[deprecated] Generated by Copilot at 4250f7c

  • Fix code generation for assigning values to array maps (link, link)
    • Avoid segmentation fault when array map is empty and key is not found (link)
    • Avoid compilation error when value is a fixed array (link)
  • Add test case for array map of fixed arrays in vlib/v/tests/array_with_fixed_array_test.v (link)

@felipensp felipensp marked this pull request as ready for review December 10, 2023 16:46
@spytheman spytheman merged commit 964798d into vlang:master Dec 10, 2023
55 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.

Compiler error on compiling nested fixed-size array
2 participants