[6.0] Mutex with generic value crashes compiler: Archetype without metadata #78048
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
crash
Bug: A crash, i.e., an abnormal termination of software
Description
A
Mutex
with a genericValue
inside a generic class crashes the compiler.Swift 6.0.2, same behavior on macOS and linux docker containers (both arm and amd64).
The weirdest part is if I comment stuff out a bit to get the file compiling, I can then comment the mutex back in and it compiles without errors. After a
swift package clean
the crasher returns.Happened in the wild here:
sliemeobn/elementary@fd86c1d
Reproduction
Stack dump
Expected behavior
As a user I want no crashers so that humanity can use the
Synchronization
module without fear ; )Environment
Apple Swift version 6.0.2 (swift-6.0.2-RELEASE)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: