* class.c (add_method): Build up OVERLOADs properly for conversion ops.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Nov 1998 02:33:48 +0000 (02:33 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Nov 1998 02:33:48 +0000 (02:33 +0000)
commite80c1dc9013f17146d7a718d53deccbf1c324817
treeaffd988f12b804dac1f96dc76b3a1879701f5aeb
parente50397ad0d2c4ee06199df9895399c6144a9c80f
* class.c (add_method): Build up OVERLOADs properly for conversion ops.
* search.c (lookup_conversions): Handle getting real OVERLOADs.
(add_conversions): Likewise.  Revert last change.
* call.c (add_conv_candidate): Pass totype to add_candidate instead
of fn.  Don't add a new candidate if the last one was for the same
type.
(print_z_candidates): Handle getting a type as a function.
(joust): If we got two conversion candidates to the same type,
just pick one.
(build_object_call): Lose 'templates'.
(build_user_type_conversion_1): Handle getting real OVERLOADs.
Fixes g++.jason/overload7.C.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23822 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/search.c