Compiler crash when a protocol containing an associatedType has an attached extension macro and multiple extensions containing freestanding macros #78193
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 trying to use a macro to help write default implementations for functions on a protocol, but the compiler is crashing. I found multiple possible causes but I'm not sure how they all interact: the attached extension macro on the protocol, the associated type, or the exact number of other extensions on the protocol.
I reduced the example as much as I could and made it available at https://github.com/DavidSkrundz/MacroICE/tree/declare_funcs_in_extensions (also pasted below)
Reproduction
Library Target:
Macro Target:
Stack dump
Expected behavior
The compiler should not crash.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: