Issue #12705: Raise SyntaxError when compiling multiple statements as single interactive statement
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index bff04de..44b817f 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -2129,6 +2129,9 @@
     case E_IDENTIFIER:
         msg = "invalid character in identifier";
         break;
+    case E_BADSINGLE:
+        msg = "multiple statements found while compiling a single statement";
+        break;
     default:
         fprintf(stderr, "error=%d\n", err->error);
         msg = "unknown parsing error";