crash with array of C++ objects exposed via SWIFT_SHARED_REFERENCE #72827
Labels
Array
Area → standard library: The `Array` type
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c++ interop
Feature: Interoperability with C++
c++ to swift
Feature → c++ interop: c++ to swift
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
swift 5.10
Description
Exposed a C++ struct via SWIFT_SHARED_REFERENCE. Works when outside an array. When added to an array, crashes when array is deallocated. Please use attached project.
CompilerCrash.zip
Reproduction
Expected behavior
Does not crash
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: