Issue #27301: Fixed incorrect return code for error in compile.c.
diff --git a/Python/compile.c b/Python/compile.c
index 51f2874..ba93fb4 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1889,7 +1889,7 @@
             attr = PyString_FromStringAndSize(src,
                                 dot ? dot - src : strlen(src));
             if (!attr)
-                return -1;
+                return 0;
             ADDOP_O(c, LOAD_ATTR, attr, names);
             Py_DECREF(attr);
             src = dot + 1;