decl.c (push_overloaded_decl): Use current_namespace instead of DECL_CONTEXT (decl) to determine where we go.

* decl.c (push_overloaded_decl): Use current_namespace instead of
	DECL_CONTEXT (decl) to determine where we go.

From-SVN: r21473
This commit is contained in:
Jason Merrill 1998-07-29 14:56:33 +00:00 committed by Jason Merrill
parent e0d75375e7
commit 19f1bd3476
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
1998-07-29 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (push_overloaded_decl): Use current_namespace instead of
DECL_CONTEXT (decl) to determine where we go.
* decl.c (lookup_name_real): Fix typo.
1998-07-28 Mark Mitchell <mark@markmitchell.com>

View File

@ -3982,7 +3982,7 @@ push_overloaded_decl (decl, forgettable)
old = decl;
if (doing_global)
set_namespace_binding (orig_name, DECL_CONTEXT (decl), old);
set_namespace_binding (orig_name, current_namespace, old);
else
IDENTIFIER_LOCAL_VALUE (orig_name) = old;