Compiler crash with pack expansion #67322
Labels
assertion failure
Bug → crash: An assertion failure
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
demangling
Area → compiler: The `libswiftDemangling` library
generics
Feature: generic declarations and types
parameter packs
Feature → generics: Parameter packs
swift 5.9
Description
The following code is causing a compiler crash, with the error message
Incorrect reconstructed type for $ss7KeyPathCyxqd__Gqd__Qp_tD(Full output/stack dump).Steps to reproduce
Build the script with the latest Swift development snapshot.
Expected behavior
The compiler shouldn't crash.
Environment
swift-DEVELOPMENT-SNAPSHOT-2023-07-10-a.xctoolchain, Apple Swift version 5.9-dev (LLVM677d82daa6d87d2, Swift291fe21d5020234)The text was updated successfully, but these errors were encountered: