[SR-9397] Failed to demangle witness for associated type (CF_ENUM) #51863
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
runtime
The Swift Runtime
swift 5.0
Attachment: Download
Additional Detail from JIRA
md5: 964a83a758ac083db82c1cca841cc98f
Issue Description:
The Swift 5 toolchain includes a regression that results in a runtime error;
This occurs when a generic type references a nested associated type that is a
CF_ENUM
/NS_ENUM
from Foundation (or possibly another module??). The issue does not occur within Swift 4.2.Consider the following;
❌In Swift 5, declaring an array which references an associated type of
CF_ENUM
results in abort Trap 6. e.g.✅Declaring an array with other types is fine;
✅One workaround is to access the
CF_ENUM
type at least once prior e.g.The text was updated successfully, but these errors were encountered: