bpo-44297: Fix missing line number in generator expressions (GH-26821)
* Make sure that line number is set when entering comprehension scope in compiler.
(cherry picked from commit 82e5c28af7049c4f5343c808f172cbe2e145f49b)
diff --git a/Python/compile.c b/Python/compile.c
index 4abc9f0..7dc0492 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -4799,6 +4799,7 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type,
{
goto error;
}
+ SET_LOC(c, e);
is_async_generator = c->u->u_ste->ste_coroutine;