Crash when compiling any RangeExpression & Sendable
in some cases
#63878
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
crash
Bug: A crash, i.e., an abnormal termination of software
existentials
Feature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values
IRGen
LLVM IR generation
protocol compositions
Feature → types: protocol composition types
swift 5.8
Description
The following code crashes the compiler. I believe this is a minimal example (reworking various lines make the crash go away). If Sendable is replaced by an empty
protocol P{}
, it also crashes, but not if it is replaced by CustomStringConvertible. Note theRangeExpression
without a Bound type.Steps to reproduce
Expected behavior
Should not crash. Following is the crash stack:
Environment
swift-driver version: 1.75.1 Apple Swift version 5.8 (swiftlang-5.8.0.117.11 clang-1403.0.22.8.60)
Target: arm64-apple-macosx13.0
Xcode 14.3
Build version 14E5197f
Target: macOS 13.2.1
The text was updated successfully, but these errors were encountered: