Compiler crash when using Noncopyable type as property wrapper wrappedvalue #81624
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
Uh oh!
There was an error while loading. Please reload this page.
Description
The compiler crashes when trying to use a noncopyable property wrapper with a noncopyable wrapped value.
Defining the property wrapper is fine, and using it using the
'underscored accessor'.wrappedValue
also works fine, but using the wrapped value directly isn't. The same is the case forprojectedValue
Reproduction
Stack dump
Expected behavior
The code compiles and works the same as it does for
'underscored accessor'.wrappedValue
Environment
swift-driver version: 1.120.5 Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
Target: arm64-apple-macosx15.0
Additional information
I also tested this on the latest 6.2 snapshot (swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a) and experienced the same issue.
Apple Swift version 6.2-dev (LLVM 74f18b3ab32b72c, Swift 245514c)
Target: arm64-apple-macosx15.0
Build config: +assertions
The text was updated successfully, but these errors were encountered: