feat(types): named structure member layout - #69
Merged
Conversation
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
rieske
force-pushed
the
feature/recursive-type-sizeof
branch
from
July 24, 2026 07:12
df5b3ef to
fa34efb
Compare
rieske
force-pushed
the
feature/structs-member-access
branch
from
July 24, 2026 07:12
87b04f9 to
1ecfde4
Compare
rieske
force-pushed
the
feature/recursive-type-sizeof
branch
from
July 24, 2026 07:18
fa34efb to
adb305e
Compare
rieske
force-pushed
the
feature/structs-member-access
branch
from
July 24, 2026 07:18
1ecfde4 to
a136a33
Compare
rieske
force-pushed
the
feature/recursive-type-sizeof
branch
from
July 24, 2026 07:27
adb305e to
c27b7a9
Compare
rieske
force-pushed
the
feature/structs-member-access
branch
from
July 24, 2026 07:27
a136a33 to
5a4ad47
Compare
rieske
force-pushed
the
feature/recursive-type-sizeof
branch
from
July 24, 2026 07:34
c27b7a9 to
b9f786c
Compare
rieske
force-pushed
the
feature/structs-member-access
branch
from
July 24, 2026 07:34
5a4ad47 to
7103848
Compare
3 tasks
rieske
force-pushed
the
feature/structs-member-access
branch
3 times, most recently
from
July 24, 2026 08:24
a8811c0 to
f1b8b2f
Compare
Introduce structure types with named members, sequential offsets, and size. Unit-tested via Type.structureMembersHaveOffsetsAndSize. Full language surface (struct definitions in CSNB, member access codegen) remains the next transplant from finish-for-git.
Use natural alignment and trailing pad for structure members, treat pointer-to-structure as pointer-only, and strengthen structure Type tests.
Reject incomplete and duplicate members, accumulate layout size in long long with overflow checks, and cover trailing pad / array stride.
rieske
force-pushed
the
feature/structs-member-access
branch
from
July 24, 2026 08:36
f1b8b2f to
09e9abc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
type::structure({{name, type}, …})withmemberOffset/memberTypeand layout size.Not yet
grammar/CSNB for
struct S { … },./->member access, or field IR (FieldAddress).Stack
PR 6/6 foundation — base is master (arrays/sizeof #68 merged).
Test plan
ctest