Crash when using a logical operator inside pack iteration #73551
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
for-in loops
Feature: for-in loops
generics
Feature: generic declarations and types
pack iteration
Feature → statements → for-in: Pack iteration
SIL
SILGen
Area → compiler: The SIL generation stage
statements
Feature: statements
swift 6.0
variadic generics
Feature → generics: Variadic generics
Description
An unexpected crash occurs when trying to use a logical operator involving a pack element inside the body of pack iteration.
Stack trace:
Reproduction
Expected behavior
The program should compile.
Environment
Swift version 6.0-dev (LLVM ceb203a206ed550, Swift a5fdf15)
Additional information
A workaround of the above bug:
If the result of a call to the function required by the protocol conformance is saved to a variable, the compilation succeeds.
The text was updated successfully, but these errors were encountered: