decl2.c (finish_file): Also call check_global_declarations for the pending_statics...
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 16 Sep 1999 17:48:20 +0000 (17:48 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 16 Sep 1999 17:48:20 +0000 (13:48 -0400)
* decl2.c (finish_file): Also call check_global_declarations for
the pending_statics list.

From-SVN: r29458

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 69250a4954470d3bc8565005bd990da61c9d3423..ddc34aa6a32eb258a9a712abe19a5d33835b0455 100644 (file)
@@ -1,3 +1,8 @@
+1999-09-16  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * decl2.c (finish_file): Also call check_global_declarations for
+       the pending_statics list.
+
 1999-09-15  Jason Merrill  <jason@yorick.cygnus.com>
 
        * lex.c (cp_pragma_implementation): Allow #pragma implementation
index 5ba6c6d4bafaeb56ddaffcd902b2d1ecd81393d3..4f589d3b80adceef294f109b46594b6a9de14053 100644 (file)
@@ -3632,8 +3632,11 @@ finish_file ()
   walk_globals (vtable_decl_p, prune_vtable_vardecl, /*data=*/0);
 
   /* Now, issue warnings about static, but not defined, functions,
-     etc.  */
+     etc., and emit debugging information.  */
   walk_namespaces (wrapup_globals_for_namespace, /*data=*/&reconsider);
+  if (pending_statics)
+    check_global_declarations (&VARRAY_TREE (pending_statics, 0),
+                              pending_statics_used);
 
   finish_repo ();