call.c (add_list_candidates): Use OVL_FIRST.
authorNathan Sidwell <nathan@acm.org>
Fri, 19 May 2017 14:12:14 +0000 (14:12 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 19 May 2017 14:12:14 +0000 (14:12 +0000)
commit6f2f4050aacf448f1e63a844845a1d0e7cde59ca
tree34862ee39fd2a98aebffc638e0b600035d0e75bb
parent546c8974ff51ef7554e18d94177fc953c0e54b95
call.c (add_list_candidates): Use OVL_FIRST.

* call.c (add_list_candidates): Use OVL_FIRST.
(build_new_method_call_1): Likewise.
* cp-tree.h (OVL_SINGLE_P): New.
(TYPE_HIDDEN_P): New.
* decl.c (xref_tag_1): Use TYPE_HIDDEN_P.
* dump.c (cp_tump_tree): Adjust overload dumping.
* error.c (dump_decl): Use OVL_SINGLE_P, simplify context
printing.
* method.c (lazily_declare_fn): Assert we added it.
* parser.c (cp_parser_nested_name_specifier): Use OVL_SINGLE_P,
OVL_FIRST.
(cp_parser_template_name): Use lkp_iterator.
* pt.c (begin_template_parm_list): Fixup comment.
(instantiate_class_template_1): Use TYPE_HIDDEN_P.
* tree.c (ovl_iterator::remove_node): Cope with inherited ctors.
(ovl_scope): Use lkp_iterator.

From-SVN: r248285
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/dump.c
gcc/cp/error.c
gcc/cp/method.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/tree.c