]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/pt.c
cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 22 Jan 2001 13:51:43 +0000 (13:51 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 22 Jan 2001 13:51:43 +0000 (13:51 +0000)
commit62e4a758537dd6c82a0a2ce1b0cd75842e41441c
tree8feaf4e16f95f3879323455ce542e7a5e0b35e7e
parent0bbcfbafc8aa36f62eb4d347301cf80498ac3464
cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.

cp:
* cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
(more_specialized): Add deduction parameter.
* call.c (joust): Adjust more_specialized call.
* pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
(get_bindings_order): Remove.
(get_bindings_real): Add DEDUCE parameter.
(maybe_adjust_types_for_deduction): Return extra unify flags. Do
REFERENCE_TYPE jig for DEDUCE_ORDER.
(type_unification_real): Deal with DEDUCE_ORDER. Use result of
maybe_adjust_types_for_deduction.
(more_specialized): Add DEDUCE parameter. Call get_bindings_real
directly.
(try_one_overload): Use result of maybe_adjust_types_for_deduction.
(check_cv_quals_for_unify): Use new unify qualifier flags.
(unify): Clear new unify qualifier flags.
(get_bindings_real): Add DEDUCE parameter.
(get_bindings): Adjust call to get_bindings_real.
(get_bindings_overload): Likewise.
(most_specialized_instantiation): Adjust call to
more_specialized.
testsuite:
* g++.old-deja/g++.martin/sts_partial.C: Remove XFAIL.
* g++.old-deja/g++.pt/spec35.C: New test.
* g++.old-deja/g++.pt/spec36.C: New test.

From-SVN: r39182
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.martin/sts_partial.C
gcc/testsuite/g++.old-deja/g++.pt/spec35.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/spec36.C [new file with mode: 0644]