Commit 19f1bd34 by Jason Merrill Committed by Jason Merrill

decl.c (push_overloaded_decl): Use current_namespace instead of DECL_CONTEXT…

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
parent e0d75375
1998-07-29 Jason Merrill <jason@yorick.cygnus.com> 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. * decl.c (lookup_name_real): Fix typo.
1998-07-28 Mark Mitchell <mark@markmitchell.com> 1998-07-28 Mark Mitchell <mark@markmitchell.com>
......
...@@ -3982,7 +3982,7 @@ push_overloaded_decl (decl, forgettable) ...@@ -3982,7 +3982,7 @@ push_overloaded_decl (decl, forgettable)
old = decl; old = decl;
if (doing_global) if (doing_global)
set_namespace_binding (orig_name, DECL_CONTEXT (decl), old); set_namespace_binding (orig_name, current_namespace, old);
else else
IDENTIFIER_LOCAL_VALUE (orig_name) = old; IDENTIFIER_LOCAL_VALUE (orig_name) = old;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment