Swift Existential Any causes crashes on iOS 15.7 devices

I have discovered that certain usages of existential any from Swift 5.6 can result in crashes on certain devices. After experimenting it seems that the required conditions are a device that is running iOS 15, and optimization is enabled.

I have a minimally reproducing example attached. The app crashes immediately when run on an iOS 15 simulator.

Should I file a bug?

Sorry, meant to say I have an example ready to attach, I'm not able to do it here.

A bug report would be much appreciated. If you've not done that before, use Feedback Assistant, and include the complete Xcode project with your small reproducible example. Please post the FB number here as a follow-up reply (not a comment) afterwards so I'm notified of your reply and can locate your report.

Swift Existential Any causes crashes on iOS 15.7 devices
 
 
Q