Non-Copyable Struct Prevents Function Specialization, Crashing in Embedded Mode #72627
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
embedded
Embedded Swift
noncopyable struct/enum
Feature → declarations: Noncopyable value type declarations
Description
Compiling this code in embedded mode crashes the compiler; I think it's because some generic function is not specialized. When removing the non-copyability constraint, the program compiles just fine.
Reproduction
CollectionHelpers.swift
main.swift:
Stack dump
Expected behavior
I expect all functions to be properly specialized and for the compiler to give me the resulting binary.
Environment
Apple Swift version 6.0-dev (LLVM dee589f75475708, Swift ac47357)
Target: arm64-apple-macosx13.0
Additional information
No response
The text was updated successfully, but these errors were encountered: