summaryrefslogtreecommitdiffstatshomepage
path: root/py/compile2.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/compile2.c')
-rw-r--r--py/compile2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/compile2.c b/py/compile2.c
index 94a7591703..b22ae8b940 100644
--- a/py/compile2.c
+++ b/py/compile2.c
@@ -2248,6 +2248,10 @@ STATIC void compile_trailer_paren_helper(compiler_t *comp, const byte *p_arglist
n_keyword += 1;
}
} else {
+ if (star_flags) {
+ compile_syntax_error(comp, p, "non-keyword arg after */**");
+ return;
+ }
if (n_keyword > 0) {
compile_syntax_error(comp, p, "non-keyword arg after keyword arg");
return;