genexps have linenos
diff --git a/Python/symtable.c b/Python/symtable.c
index 40eb866..d782a19 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -1468,7 +1468,7 @@
 	VISIT(st, expr, outermost->iter);
 	/* Create generator scope for the rest */
 	if (!GET_IDENTIFIER(genexpr) ||
-	    !symtable_enter_block(st, genexpr, FunctionBlock, (void *)e, 0)) {
+	    !symtable_enter_block(st, genexpr, FunctionBlock, (void *)e, e->lineno)) {
 		return 0;
 	}
 	st->st_cur->ste_generator = 1;