Compiler crash in Swift 5 language mode, when using generic, convenience init, assumeIsolated #78293
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
This program crashes the compiler in language mode 5, but works in language mode 6.
Works:
swift -swift-version 6 main.swift
Crashes:
swift -swift-version 5 main.swift
When removing the generic, the convenience init or the assumeIsolated, it won't crash.
Reproduction
Stack dump
Expected behavior
I expect the code to compile in language mode 5 as well as 6, it seems like valid code.
Environment
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: