Open roopekv opened 6 months ago
Additional information with 6.0-dev-branch:
[cleanup] %1 = alloc_stack $Pack{repeat each T}, var, name "t" // user: %2
Unhandled transform?
UNREACHABLE executed at /home/build-user/swift/lib/SILGen/SILGenPoly.cpp:681!
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
I believe this is the assertion being hit: https://github.com/apple/swift/blob/bd1b99bad0dcc42c784e7b5632b1339710b8caad/lib/SILGen/SILGenPoly.cpp#L681
Try it yourself: https://godbolt.org/z/aKMYb48ob
Would really like for this issue to get resolved. Any help is greatly appreciated.
Description
Declaring a function with an inout parameter pack causes the compiler to crash.
Reproduction
Stack dump
Expected behavior
Compiler shouldn't crash. I would expect the code to compile, but if inout parameter packs are not supported, then I would expect an error message informing about the limitation.
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Additional information
No response