Compiler crash with swiftly installed swift
bug
### Description
Hi,
I'm getting a compiler crash with `swiftly` install `swift` with both `swift` `6.2.3` as well as `6.2.4`. This is the specific error:
```cli
Building for debugging...
error: compile command failed due to signal 6 (use -v to see invocation)
Assertion failed: ((path.size() == 1 && path[0].getKind() == ConstraintLocator::SubscriptMember) || (path.size() == 2 && path[1].getKind() == ConstraintLocator::KeyPathDynamicMember)), function addKeyPathApplicationRootConstraint, file CSSimplify.cpp, line 16158.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
`
It goes on to report this:
```cli
1. Apple Swift version 6.2.4 (swift-6.2.4-RELEASE)
2. Compiling with the current language version
3. While evaluating request TypeCheckPrimaryFileRequest(source_file "/Users/timdejong/Work/ThinkPractice/Apps/ScaleDiary/ScaleDiaryApp/ScaleDiaryFeatures/.build/checkouts/swift-structured-queries/Sources/StructuredQueriesCore/PrimaryKeyed.swift")
4. While evaluating request TypeCheckFunctionBodyRequest(StructuredQueriesCore.(file).TableDraft extension._@/Users/timdejong/Work/ThinkPractice/Apps/ScaleDiary/ScaleDiaryApp/ScaleDiaryFeatures/.build/checkouts/swift-structured-queries/Sources/StructuredQueriesCore/PrimaryKeyed.swift:30:29)
5. While type-checking statement at [/Users/timdejong/Work/ThinkPractice/Apps/ScaleDiary/ScaleDiaryApp/ScaleDiaryFeatures/.build/checkouts/swift-structured-queries/Sources/StructuredQueriesCore/PrimaryKeyed.swift:30:29 - line:32:3] RangeText="{
SQLQueryExpression("\(PrimaryTable.self[keyPath: keyPath])")
"
6. While type-checking statement at [/Users/timdejong/Work/ThinkPractice/Apps/ScaleDiary/ScaleDiaryApp/ScaleDiaryFeatures/.build/checkouts/swift-structured-queries/Sources/StructuredQueriesCore/PrimaryKeyed.swift:31:5 - line:31:64] RangeText="SQLQueryExpression("\(PrimaryTable.self[keyPath: keyPath])""
7. While type-checking-target starting at /Users/timdejong/Work/ThinkPractice/Apps/ScaleDiary/ScaleDiaryApp/ScaleDiaryFeatures/.build/checkouts/swift-structured-queries/Sources/StructuredQueriesCore/PrimaryKeyed.swift:31:5
#0 0x000000010a46ea84 (/Users/timdejong/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x1059eaa84)
```
The code compiles fine with the version of `swift` (`6.2.3`) that Xcode provides. Is this a know bug?
### Checklist
- [ ] I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
- [ ] If possible, I've reproduced the issue using the `main` branch of this package.
- [x] This issue hasn't been addressed in an [existing GitHub issue](https://github.com/pointfreeco/swift-structured-queries/issues) or [discussion](https://github.com/pointfreeco/swift-structured-queries/discussions).
### Expected behavior
_No response_
### Actual behavior
_No response_
### Reproducing project
_No response_
### Structured Queries version information
_No response_
### Destination operating system
_No response_
### Xcode version information
_No response_
### Swift Compiler version information
```shell
```
关闭于 2026-03-02 1 条评论