Repository navigation
fix(build): spell out the CFRRewriter initializer for toolchains before Swift 6.4 (#787) - #789
Merged
Merged
Conversation
…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
This was referenced Oct 15, 2026
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.
Reported in #787 and on #762 by @ijuniorfu:
swift buildfails 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/andTests/for other structs with private stored properties, no explicitinit, and a memberwise call site found no second case.Verification:
swift build --build-testson 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