Segmentation fault 11 is thrown when passing function using parameter pack itself as a parameter in Xcode 15 beta 1

Number:rdar://FB12257179 Date Originated:2023-06-07
Status:Closed Resolved:Yes
Product:Swift Compiler Product Version:5.9
Classification:Developer Tools & Resources Reproducible:Yes
When passing to use parameter pack function itself as a parameter to a different function (as a completion handler etc.) it will crash the compiler in Xcode 15 beta 1. Attached a simple playground with two different examples, which both crash.

Not sure if this if passing parameter packs as a closure is supported, but is definitely should not crash.

I expected parameter packs to be able to replace the code generation for this library, which has some very nice basic use cases for paramer packs:


This works both in Xcode 15 and Xcode 15.0.1.

By matej.jirasek at Oct. 20, 2023, 8:39 a.m. (reply...)

Still present in Xcode 15 beta 2.

By matej.jirasek at Oct. 20, 2023, 8:39 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!