diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-10-03 11:20:32 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-10-03 11:20:32 -0400 |
commit | 35b4cbbd70b70592bd7be3b4ff0550e0de1b3b30 (patch) | |
tree | 53d3f35131e949a76d7a4eab962c56e8c0627243 /gcc/cp/constraint.cc | |
parent | 7cc9022f8d5c5cc02cc4f8af2f27184a81536fcf (diff) | |
download | gcc-35b4cbbd70b70592bd7be3b4ff0550e0de1b3b30.zip gcc-35b4cbbd70b70592bd7be3b4ff0550e0de1b3b30.tar.gz gcc-35b4cbbd70b70592bd7be3b4ff0550e0de1b3b30.tar.bz2 |
c++: rename IS_SAME_AS trait code to IS_SAME
... to match the trait's canonical spelling __is_same instead
of its alternative spelling __is_same_as.
gcc/c-family/ChangeLog:
* c-common.cc (c_common_reswords): Use RID_IS_SAME instead of
RID_IS_SAME_AS.
gcc/cp/ChangeLog:
* constraint.cc (diagnose_trait_expr): Use CPTK_IS_SAME instead
of CPTK_IS_SAME_AS.
* cp-trait.def (IS_SAME_AS): Rename to ...
(IS_SAME): ... this.
* pt.cc (alias_ctad_tweaks): Use CPTK_IS_SAME instead of
CPTK_IS_SAME_AS.
* semantics.cc (trait_expr_value): Likewise.
(finish_trait_expr): Likewise.
Diffstat (limited to 'gcc/cp/constraint.cc')
-rw-r--r-- | gcc/cp/constraint.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/constraint.cc b/gcc/cp/constraint.cc index f414557..74898ca 100644 --- a/gcc/cp/constraint.cc +++ b/gcc/cp/constraint.cc @@ -3649,7 +3649,7 @@ diagnose_trait_expr (tree expr, tree args) case CPTK_IS_POLYMORPHIC: inform (loc, " %qT is not a polymorphic type", t1); break; - case CPTK_IS_SAME_AS: + case CPTK_IS_SAME: inform (loc, " %qT is not the same as %qT", t1, t2); break; case CPTK_IS_STD_LAYOUT: |