Compiler crash with value and type pack when used in a method vs free function #73211
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
class
Feature → type declarations: Class declarations
compiler
The Swift compiler itself
crash
Bug: A crash, i.e., an abnormal termination of software
generics
Feature: generic declarations and types
methods
Feature → functions: methods (member functions)
parameter packs
Feature → generics: Parameter packs
SILGen
Area → compiler: The SIL generation stage
swift 5.10
Description
This simple example demonstrates a compiler crash when a function is defined as a method instead of a free function.
Reproduction
Stack dump
Expected behavior
Both should be compiling fine
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Additional information
I suppose (although not sure at all) it may be related to #73209 as it follows the same pattern where a method causes an issue and not a free function, but #73209 causes a runtime crash whereas the present issue causes a compiler crash, and both issues also have slightly different code.
The text was updated successfully, but these errors were encountered: