Commit 1231fb96 by Martin v. Löwis Committed by Martin v. Löwis

decl.c (lookup_namespace_name): If the name is a namespace, return it immediately.

1998-09-24  Martin von L�wis  <loewis@informatik.hu-berlin.de>
	* decl.c (lookup_namespace_name): If the name is a namespace,
	return it immediately.

From-SVN: r22589
parent 2abbc1bd
1998-09-25 Martin von Lwis <loewis@informatik.hu-berlin.de>
* decl.c (lookup_namespace_name): If the name is a namespace,
return it immediately.
Fri Sep 25 11:45:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cp-tree.h (define_case_label): Remove unused parameter.
......
......@@ -4752,6 +4752,11 @@ lookup_namespace_name (namespace, name)
tree val;
my_friendly_assert (TREE_CODE (namespace) == NAMESPACE_DECL, 370);
/* This happens for A::B<int> when B is a namespace. */
if (TREE_CODE (name) == NAMESPACE_DECL)
return name;
my_friendly_assert (TREE_CODE (name) == IDENTIFIER_NODE, 373);
val = binding_init (&_b);
......
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