Crash Analyzing Escapability in Autoclosure Argument #81595
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
Using a non-escapable value in an autoclosure appears to crash the compiler.
Reproduction
With the following flags:
-Xfrontend -enable-experimental-feature -Xfrontend Embedded -wmo -Xfrontend -enable-experimental-feature -Xfrontend SymbolLinkageMarkers -Xfrontend -enable-experimental-feature -Xfrontend LifetimeDependence
I don't think Embedded makes a difference but that's how I ran it.
Or in godbolt.
Stack dump
Expected behavior
An error instead of a crash, although I don't think the value actually escapes.
Environment
Swift version 6.2-dev (LLVM be9c1978c3677f1, Swift 749e9ee)
Target: x86_64-unknown-linux-gnu
Build config: +assertions
Compiler returned: 0
Additional information
No response
The text was updated successfully, but these errors were encountered: