Open
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