decl.c (qualify_lookup): New fn.
authorJason Merrill <jason@gcc.gnu.org>
Thu, 16 Jul 1998 16:38:26 +0000 (12:38 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 16 Jul 1998 16:38:26 +0000 (12:38 -0400)
commit52c11ef6a3eb0e205899df0f54c1c41be31c8ae9
treecbe972f9255ef0c0563c1646d2e79d46177a5784
parenta942e89c9a5eb08a050d632d21ad12a1de25c65b
decl.c (qualify_lookup): New fn.

* decl.c (qualify_lookup): New fn.
(lookup_name_real): Use it.
* decl2.c (add_using_namespace): When directly using a namespace
that was indirect before, promote it.
* cp-tree.h (LOOKUP_PREFER_TYPES, LOOKUP_PREFER_NAMESPACES,
LOOKUP_PREFER_BOTH, LOOKUP_NAMESPACES_ONLY, LOOKUP_TYPES_ONLY,
LOOKUP_QUALIFIERS_ONLY, LOOKUP_TEMPLATES_EXPECTED): New macros.
* decl.c (select_decl): Replace two flag parameters by one.
(unqualified_namespace_lookup): Likewise, pass flag.
(lookup_flags): New function.
(lookup_name_real): Compute flags, pass them.
(lookup_namespace_name): Call with zero-flag.
* decl2.c (ambiguous_decl): Add flag parameter, complain only
according to flags.
(lookup_using_namespace, qualified_lookup_using_namespace):
Add flag parameter, pass them through.
* lex.c (do_scoped_id): Call with zero-flag.

From-SVN: r21218
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/lex.c