cp: PR c++/20637 * cp-tree.h (add_method): Add using_decl parameter. * class.c (add_method): Add using_decl parameter. Adjust error messages. (handle_using_decl): Pass the using decl to add_method. (clone_function_decl): Adjust add_member calls. * decl2.c (check_classfn): Likewise. * method.c (lazily_declare_fn): Likewise. * semantics.c (finish_member_declaration): Likewise. * method.c (synthesize_method): Use inform, not warning. testsuite: PR c++/20637 * g++.dg/inherit/using4.C: New. * g++.dg/overload/error1.C: Adjust expected errors. * g++.old-deja/g++.benjamin/warn02.C: Likewise. * g++.old-deja/g++.brendan/arm2.C: Likewise. * g++.old-deja/g++.other/redecl2.C: Likewise. * g++.old-deja/g++.other/redecl4.C: Likewise. * g++.old-deja/g++.pt/memtemp78.C: Likewise. From-SVN: r100664
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
VLA.C | Loading commit data... | |
addr1.C | Loading commit data... | |
ambig1.C | Loading commit data... | |
ambig2.C | Loading commit data... | |
arg1.C | Loading commit data... | |
arg2.C | Loading commit data... | |
arg3.C | Loading commit data... | |
arg4.C | Loading commit data... | |
builtin1.C | Loading commit data... | |
builtin2.C | Loading commit data... | |
builtin3.C | Loading commit data... | |
cond1.C | Loading commit data... | |
ellipsis1.C | Loading commit data... | |
error1.C | Loading commit data... | |
koenig1.C | Loading commit data... | |
member1.C | Loading commit data... | |
member2.C | Loading commit data... | |
new1.C | Loading commit data... | |
operator-star-1.C | Loading commit data... | |
operator1.C | Loading commit data... | |
operator2.C | Loading commit data... | |
pmf1.C | Loading commit data... | |
prom1.C | Loading commit data... | |
ref1.C | Loading commit data... | |
scope1.C | Loading commit data... | |
template1.C | Loading commit data... | |
template2.C | Loading commit data... | |
using1.C | Loading commit data... | |
using2.C | Loading commit data... | |
virtual1.C | Loading commit data... |