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
Showing
Please
register
or
sign in
to comment