Skip to content

fix(build): spell out the CFRRewriter initializer for toolchains before Swift 6.4 (#787) - #789

Merged
superuser404notfound merged 1 commit into
mainfrom
fix/787-cfr-rewriter-init
Oct 15, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
fix/787-cfr-rewriter-init

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

Reported in #787 and on #762 by @ijuniorfu: swift build fails on Swift 6.3.3 with 'H264MatroskaSlotPermutation.CFRRewriter' initializer is inaccessible due to 'private' protection level.

CFRRewriter (from #762) has private stored properties with defaults. Swift 6.4 excludes those from the memberwise initializer, so CI (Xcode 27) and local builds were green; earlier compilers make the synthesized initializer private. The initializer is now written out, call sites unchanged, no behavior change.

A scan of Sources/ and Tests/ for other structs with private stored properties, no explicit init, and a memberwise call site found no second case.

Verification: swift build --build-tests on Swift 6.4, Matroska / #511 suites green (21 tests). Not verified on a 6.3 toolchain locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS

…re Swift 6.4 (#787)

CFRRewriter has private stored properties with defaults. Swift 6.4 leaves
those out of the memberwise initializer, earlier compilers make the whole
initializer private, so the .reconstruct branch and the #511 tests failed
to compile on Xcode 26 (Swift 6.3.3 reported).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
@superuser404notfound
superuser404notfound merged commit 2eb5915 into main Oct 15, 2026
4 checks passed
@superuser404notfound
superuser404notfound deleted the fix/787-cfr-rewriter-init branch October 19, 2026 09:09
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.

1 participant