Skip to content

ast, cgen, assign: fix fixed array alias: nested empty init, ref init and reassign - #27969

Open
rilaaax wants to merge 6 commits into
vlang:masterfrom
rilaaax:fix-fixed-array-alias-init_ref_assign
Open

ast, cgen, assign: fix fixed array alias: nested empty init, ref init and reassign#27969
rilaaax wants to merge 6 commits into
vlang:masterfrom
rilaaax:fix-fixed-array-alias-init_ref_assign

Conversation

@rilaaax

@rilaaax rilaaax commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix some cases where fixed array alias generated invalid C:

  • init a nested array of empty structs
  • init as reference &
  • reassign

Tests

Regression tests added in vlib/v/tests/aliases/alias_fixed_array_of_struct_test.v

@medvednikov

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 69c2fb615a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread vlib/v/gen/c/assign.v
@rilaaax
rilaaax force-pushed the fix-fixed-array-alias-init_ref_assign branch from 69c2fb6 to 7afd043 Compare August 4, 2026 10:31
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.

2 participants