From 033ed3404f26189e0a8dad325c17473ec9b95f29 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 16 Sep 1999 17:48:20 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl2.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 69250a49544..ddc34aa6a32 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1999-09-16 Jason Merrill + + * decl2.c (finish_file): Also call check_global_declarations for + the pending_statics list. + 1999-09-15 Jason Merrill * lex.c (cp_pragma_implementation): Allow #pragma implementation diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 5ba6c6d4baf..4f589d3b80a 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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 (); -- 2.30.2