call.c (add_function_candidate): Treat conversion functions as coming from the argume...
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 28 Oct 1998 01:53:50 +0000 (01:53 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 28 Oct 1998 01:53:50 +0000 (20:53 -0500)
commitaa45967f76ad4641556288a415eaceaf2269c9d5
tree7eef74f4242089b2072e082e3cc77e5aef19ad5d
parentb58c9a790af44c27c4bdc15106d4685f8d38f831
call.c (add_function_candidate): Treat conversion functions as coming from the argument's class.

* call.c (add_function_candidate): Treat conversion functions
as coming from the argument's class.
* cp-tree.h (DECL_CONV_FN_P): New fn.
(DECL_DESTRUCTOR_P): Also check DECL_LANGUAGE.
* class.c (add_method): Use DECL_CONV_FN_P.
* decl2.c (check_classfn): Likewise.
* error.c (dump_function_name): Likewise.
(dump_function_decl): Likewise.
* pt.c (fn_type_unification): Likewise.
* search.c (add_conversions): Likewise.

From-SVN: r23387
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/error.c
gcc/cp/pt.c
gcc/cp/search.c