diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-07-23 10:39:08 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:47 +0200 |
commit | 6d116bc5f958054fca819ab38d40e1abefd74b2d (patch) | |
tree | ccec8a1d42eda8a33b4fcb0b6a68bdba2cf4107b /gcc/cp/tree.cc | |
parent | e818585e264728859ec375efca66998ff232ef9d (diff) | |
download | gcc-6d116bc5f958054fca819ab38d40e1abefd74b2d.zip gcc-6d116bc5f958054fca819ab38d40e1abefd74b2d.tar.gz gcc-6d116bc5f958054fca819ab38d40e1abefd74b2d.tar.bz2 |
c++: Remove CHECK_CONSTR
On Mon, Jul 22, 2024 at 11:48:51AM -0400, Patrick Palka wrote:
> FWIW this tree code seems to be a vestige of the initial Concepts TS
> implementation and is effectively unused, we can remove it outright.
Here is a patch which removes that.
2024-07-23 Jakub Jelinek <jakub@redhat.com>
* cp-tree.def (CHECK_CONSTR): Remove.
* cp-tree.h (CHECK_CONSTR_CONCEPT, CHECK_CONSTR_ARGS): Remove.
* cp-objcp-common.cc (cp_common_init_ts): Don't handle CHECK_CONSTR.
* tree.cc (cp_tree_equal): Likewise.
* error.cc (dump_expr): Likewise.
* cxx-pretty-print.cc (cxx_pretty_printer::expression): Likewise.
(pp_cxx_check_constraint): Remove.
(pp_cxx_constraint): Don't handle CHECK_CONSTR.
Diffstat (limited to 'gcc/cp/tree.cc')
-rw-r--r-- | gcc/cp/tree.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/cp/tree.cc b/gcc/cp/tree.cc index 0e32d90..250239e 100644 --- a/gcc/cp/tree.cc +++ b/gcc/cp/tree.cc @@ -4116,11 +4116,6 @@ cp_tree_equal (tree t1, tree t2) return cp_tree_equal (CI_ASSOCIATED_CONSTRAINTS (t1), CI_ASSOCIATED_CONSTRAINTS (t2)); - case CHECK_CONSTR: - return (CHECK_CONSTR_CONCEPT (t1) == CHECK_CONSTR_CONCEPT (t2) - && comp_template_args (CHECK_CONSTR_ARGS (t1), - CHECK_CONSTR_ARGS (t2))); - case TREE_VEC: /* These are template args. Really we should be getting the caller to do this as it knows it to be true. */ |