-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Description
| Previous ID | SR-14776 |
| Radar | rdar://problem/79304885 |
| Original Reporter | @tachyonics |
| Type | Bug |
| Status | Resolved |
| Resolution | Done |
Environment
Swift: 5.4.1, main and 5.5 nightlies
Docker image: swift:5.4.1-amazonlinux2,
swiftlang/swift:nightly-main-amazonlinux2,
swiftlang/swift:nightly-5.5-amazonlinux2
Additional Detail from JIRA
| Votes | 0 |
| Component/s | |
| Labels | Bug |
| Assignee | @slavapestov |
| Priority | Medium |
md5: 642755e51bec4543a09f9baea9c87a51
Issue Description:
Creating a package with just a copy of BigInt from https://github.com/apple/swift/blob/7123d2614b5f222d03b3762cb110d27a9dd98e24/test/Prototypes/BigInt.swift fails under Swift 5.4.1 and 5.5, main and 5.5 nightlies. It succeeds under 5.4.0.
```
1. Swift version 5.4.1 (swift-5.4.1-RELEASE)
2. While evaluating request TypeCheckSourceFileRequest(source_file "/workspace/Sources/SwiftCompilerCrashRepro/BigInt.swift")
3. While type-checking '_BigInt' (at /workspace/Sources/SwiftCompilerCrashRepro/BigInt.swift:78:8)
4. While evaluating request RequirementRequest(SwiftCompilerCrashRepro.(file)._BigInt@/workspace/Sources/SwiftCompilerCrashRepro/BigInt.swift:78:15, 0, interface)
5. While evaluating request ResolveTypeRequest(while resolving type , Word.Magnitude, (null))
6. While canonicalizing generic signature <τ_0_0 where τ_0_0 : FixedWidthInteger, τ_0_0 == τ_0_0.Magnitude, τ_0_0.Magnitude == τ_0_0.Magnitude.Magnitude.Magnitude> in requirement #2
```
Repro repository here: https://github.com/tachyonics/swift-compiler-crash-repro