decl2.c (finish_file): Also call check_global_declarations for the pending_statics list.

* decl2.c (finish_file): Also call check_global_declarations for
	the pending_statics list.

From-SVN: r29458
This commit is contained in:
Jason Merrill 1999-09-16 17:48:20 +00:00 committed by Jason Merrill
parent c2e3db9254
commit 033ed3404f
2 changed files with 9 additions and 1 deletions

View 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

View 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 ();