OSDN Git Service

(program): After extdefs, pop any unpopped binding lvls.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Feb 1993 23:44:20 +0000 (23:44 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Feb 1993 23:44:20 +0000 (23:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3486 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-parse.in

index e811303..494cdac 100644 (file)
@@ -256,6 +256,10 @@ end ifobjc
                }
        | extdefs
                {
+                 /* In case there were missing closebraces,
+                    get us back to the global binding level.  */
+                 while (! global_bindings_p ())
+                   poplevel (0, 0, 0);
 ifobjc
                  objc_finish ();
 end ifobjc