]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/search.c
class.c (add_method): Build up OVERLOADs properly for conversion ops.
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 24 Nov 1998 02:33:48 +0000 (02:33 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 24 Nov 1998 02:33:48 +0000 (21:33 -0500)
commit37b6eb345f9504a6b4543a9b1ecceb965556173d
treeaffd988f12b804dac1f96dc76b3a1879701f5aeb
parent52e1eb536c07b16813c1ed39e5bf40be0b8845b7
class.c (add_method): Build up OVERLOADs properly for conversion ops.

* 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.

From-SVN: r23822
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/search.c
This page took 0.05601 seconds and 5 git commands to generate.