diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-11-17 07:12:01 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-11-17 07:12:01 +0100 |
commit | cfe871e3ec6a28f5fb7602ab44407613b6787ef2 (patch) | |
tree | 5a205f355fa894711302726a5b8792dbcf6fae3d /gcc/cp | |
parent | f6e86b330363306d772ed69dfb864532bf5de5b6 (diff) | |
download | gcc-cfe871e3ec6a28f5fb7602ab44407613b6787ef2.zip gcc-cfe871e3ec6a28f5fb7602ab44407613b6787ef2.tar.gz gcc-cfe871e3ec6a28f5fb7602ab44407613b6787ef2.tar.bz2 |
method.c (lookup_comparison_result): Use %qD instead of %<%T::%D%> to print the decl.
* method.c (lookup_comparison_result): Use %qD instead of %<%T::%D%>
to print the decl.
(lookup_comparison_category): Use %qD instead of %<std::%D%> to print
the decl.
* g++.dg/cpp2a/spaceship-err3.C: New test.
From-SVN: r278375
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/method.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 429ffd6..4730d79 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2019-11-17 Jakub Jelinek <jakub@redhat.com> + + * method.c (lookup_comparison_result): Use %qD instead of %<%T::%D%> + to print the decl. + (lookup_comparison_category): Use %qD instead of %<std::%D%> to print + the decl. + 2019-11-15 Paolo Carlini <paolo.carlini@oracle.com> * typeck.c (cp_truthvalue_conversion): Add tsubst_flags_t parameter diff --git a/gcc/cp/method.c b/gcc/cp/method.c index acba6c6..a707940 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -924,7 +924,7 @@ lookup_comparison_result (tree type, const char *name_str, if (decl == error_mark_node || TREE_CODE (decl) == TREE_LIST) qualified_name_lookup_error (type, name, decl, input_location); else - error ("%<%T::%D%> is not a static data member", type, decl); + error ("%qD is not a static data member", decl); inform (input_location, "determining value of %qs", "operator<=>"); } return error_mark_node; @@ -951,7 +951,7 @@ lookup_comparison_category (comp_cat_tag tag, if (decl == error_mark_node || TREE_CODE (decl) == TREE_LIST) qualified_name_lookup_error (std_node, name, decl, input_location); else - error ("%<std::%D%> is not a type", decl); + error ("%qD is not a type", decl); inform (input_location, "forming type of %qs", "operator<=>"); } return error_mark_node; |