SILGen assertion failure when compiling unreachable lazy local variable #73736
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
an assertion failure is hit when compiling a method containing an unreachable lazy local variable.
Reproduction
Stack dump
Expected behavior
assertion should not be hit
Environment
env of repro (compiler explorer):
Additional information
repro from compiler explorer can be found here. code appears to compile without issue in swift 5.5 & 5.6, but hits this issue in 5.7+. prior to 5.4 it appears lazy local variables were not supported and would result in a compiler error. possibly related to #66384.
The text was updated successfully, but these errors were encountered: