Closed
Description
Bug report
Bug description:
The following code causes a crash with cpython 3.13 (56a7e04) and with the current main branch (d68a22e)
async def name_4():
match b'':
case True:
pass
case name_5 if f'e':
{name_3: name_4 async for name_2 in name_5}
case []:
pass
[[]]
output (Python 3.13.0b2+):
python: Python/flowgraph.c:2282: push_cold_blocks_to_end: Assertion `prev_instr' failed.
I bisected the problem down to this commit 2091fb2.
@iritkatriel can you take a look at it?
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
No response