[SR-1722] Recursive enum (via Array as indirection) compiles but causes runtime deadlock. #44331
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
run-time crash
Bug → crash: Swift code crashed during execution
runtime
The Swift Runtime
Environment
OS X El Capitan.
Shouldn't matter though.
Additional Detail from JIRA
md5: 99032780a3fad302fa3f0e9d99fddca8
duplicates:
Issue Description:
This code compiles without warnings/errors but deadlocks:
Pausing the program returns the following stack trace:
Replacing "enum" with "indirect enum" fixes the problem.
I have the feeling that this should either work (preferred, obviously) or not compile in the first place.
The text was updated successfully, but these errors were encountered: