Skip to content

feat(ast): multi-dimensional array access and array decay - #71

Merged
rieske merged 3 commits into
masterfrom
feature/array-decay-multidim
Jul 24, 2026
Merged

feat(ast): multi-dimensional array access and array decay#71
rieske merged 3 commits into
masterfrom
feature/array-decay-multidim

Conversation

@rieske

@rieske rieske commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Nested a[i][j] yields subarray address (no scalar load of the row)
  • *a decays array to pointer then loads first element
  • Functional multi-dim + unary-deref cases in ArraysTest

Stack

PR 2/N — stacks on #array-index-mw

Test plan

  • Full local ctest
  • CI green

@mergify

mergify Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@coveralls

coveralls commented Jul 24, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 92.628% (+0.03%) from 92.601% — feature/array-decay-multidim into master

@rieske
rieske force-pushed the feature/array-decay-multidim branch from daaabbb to a9e75b8 Compare July 24, 2026 11:54
Nested a[i][j] yields the subarray address without loading the row as a
scalar; *a decays T[N] to T* then loads the first element. Extends
ArraysTest with multi-dim and unary-deref cases.
@rieske
rieske force-pushed the feature/array-decay-multidim branch from a9e75b8 to f5b7f20 Compare July 24, 2026 12:02
Base automatically changed from feature/array-index-mw to master July 24, 2026 13:00
@rieske
rieske merged commit 0049490 into master Jul 24, 2026
3 checks passed
@rieske
rieske deleted the feature/array-decay-multidim branch July 24, 2026 13:04
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