-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwaremissing infoResolution: Is missing crucial info such as a test case or a concise descriptionResolution: Is missing crucial info such as a test case or a concise descriptionobjective-c interopFeature: Interoperability with Objective-CFeature: Interoperability with Objective-Cswift 5.8
Description
Description
When attempting to compile a project I'm working on with Swift 5.8 I run into a compiler crash. It fails on an extension in Swift adding a protocol conformance to an Objective-C type. I've managed to strip down the offending code to what I think is the bare minimum to reproduce the crash. Source repo here: https://github.com/simba909/swift-5.8-compilercrash
Steps to reproduce
- Check out the repo linked above
- Open the contained Swift package with Xcode 14.3 RC 2
- Uncomment the protocol conformance in
LegacyNode+Versionable.swift
- Try to build the project
Expected behavior
The project should still fail to build (due to missing protocol requirements) but the compiler should be able to produce accurate diagnostics describing why compilation failed.
Environment
- Swift compiler version info:
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100) Target: arm64-apple-macosx13.0
- Xcode version info: Xcode 14.3, Build version 14E222b
- Deployment target: iOS 16.4
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwaremissing infoResolution: Is missing crucial info such as a test case or a concise descriptionResolution: Is missing crucial info such as a test case or a concise descriptionobjective-c interopFeature: Interoperability with Objective-CFeature: Interoperability with Objective-Cswift 5.8