[SR-10600] Runtime fails to demangle superclass when superclass's generic constraints are satisified in a conditional conformance #53000
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
Attachment: Download
Environment
Xcode Version 10.2.1 (10E1001), running on the iOS simulator.
Additional Detail from JIRA
md5: e58a0fb9941799cfe7a5f7a11b213366
relates to:
Issue Description:
Firstly, to address the elephant in the room, I know that this is the exact same error message as a crash that's already a known issue according to the Xcode 10.2 release notes. But based on my conversation with @jckarter on Twitter it's not clear if it's the same crash, hence this ticket.
TL:DR is that if you have a class C<T: P>, class D<T2> conforms to P if T2 conforms to P2, and class C2: C<D>, then C2's superclass metadata will be corrupted somehow.
See the sample project's SwiftTest2.swift file for an implementation of this.
The text was updated successfully, but these errors were encountered: