Compiler crash with generic result builders #72739
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
I'm hitting a compiler crash when adding a generic result builder annotation to a protocol function requirement.
Reproduction
Example 1, causes an assertion failure + crash backtrace:
Example 2, results in a linker failure:
Stack dump
Expected behavior
The code examples should compile.
Environment
Compiler crash, 5.10, 5.9.2, ..., 5.7.3, 5.4 -- every swift.org open source release Xcode toolchain:
Also occurs with nightly development snapshots (March 31, 2024):
BUT: Compiles with the 5.10 toolchain shipping with Xcode 15.3 (15E204a) and in the swift:latest (05a85cf71d57) docker container:
Additional information
may be related to #61250 ...
FB13823026
The text was updated successfully, but these errors were encountered: