Skip to content

#3014, #3012: member-record bitfields (D147) and persistent REPL declarations (§18.5) - #3037

Merged
ehartford merged 2 commits into
mainfrom
d147-member
Nov 5, 2026
Merged

ehartford merged 2 commits into
mainfrom
d147-member

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Part of #2982 (bridge-the-impl-gap.md).

  1. c_import: a bitfield in a member record (D147) is refused as untranslatable #3014 (D147): ci_bitfield_plan_cursor and ci_translate_anon_record_cursor model bitfields in named and C11-anonymous member records under with migrate identically to top-level bitfield records (storage units, getters/setters, designated initializers, sizeof/offsetof comptime assertions, and Itanium/MSVC ABI-divergence refusals), and count_anon_member_ordinal counts named tagless member records so anon_N ordinals agree across ClangBridge and CImport (c-migrator-basic-tests + test/behavior/behav_d147_member_record_bitfields.w).
  2. with repl: persistent declarations across lines (§18.5) — a let/fn/type line is refused #3012 (§18.5): with repl accumulates session use imports, declarations (fn, type, enum, trait, impl, extend, extern, const, including multi-line delimited and colon-indented blocks), and let/var/mutating statements across turns, suppressing prior-turn stdout replay via a turn sentinel (cli-selfhost-edge-tests + test/behavior/behav_3012_repl_persistent_decls.w).
  3. Flips §18.5 and D147 to implemented in test/conformance/conformance.tsv.

Closes #3014
Closes #3012

@ehartford

Copy link
Copy Markdown
Contributor Author

Seed-driven battery GREEN at ab9d1fc5b (with run tools/verdict.w out/battery/battery.log → out/battery/battery.log: rc=0 green).

@ehartford
ehartford marked this pull request as ready for review November 5, 2026 21:32
@ehartford
ehartford merged commit 8e7093a into main Nov 5, 2026
@ehartford
ehartford deleted the d147-member branch November 5, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant