Compiler crash: "Require PartitionOp's argument should already be tracked" #81500
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
Unmanaged<T>.fromOpaque(userData!)
with a passed template protocol type causes the crash.Reproduction
Stack dump
Expected behavior
A pointer gets de-referenced and a correct value gets returned.
Environment
Apple Swift version 6.1 (swift-6.1-RELEASE)
Target: arm64-apple-macosx15.0
Additional information
This is when passing a closure to a C function as a callback. I modeled the
cRegisterSystem
after what gets imported from pico_ecs.h C library.The text was updated successfully, but these errors were encountered: