https://gcc.gnu.org/g:7c97dca39cf5658d67fb68ec26c75e91a9388bc9

commit r16-8531-g7c97dca39cf5658d67fb68ec26c75e91a9388bc9
Author: Yang Kun <[email protected]>
Date:   Wed Apr 8 15:38:02 2026 +0200

    c++/reflection: Fix wrong function name in error messages
    
    gcc/cp/ChangeLog:
            * reflect.cc (eval_display_string_of): Fix copy-paste error in 
exception
            messages.
    
    Signed-off-by: Yang Kun <[email protected]>

Diff:
---
 gcc/cp/reflect.cc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gcc/cp/reflect.cc b/gcc/cp/reflect.cc
index 93d2affbd194..a2eb5ff1486f 100644
--- a/gcc/cp/reflect.cc
+++ b/gcc/cp/reflect.cc
@@ -3706,13 +3706,14 @@ eval_display_string_of (location_t loc, const 
constexpr_ctx *ctx, tree r,
   if (str == NULL_TREE)
     {
       if (elt_type == char_type_node)
-       return throw_exception (loc, ctx, "identifier_of not representable"
+       return throw_exception (loc, ctx, "display_string_of not representable"
                                          " in ordinary literal encoding",
                                fun, non_constant_p, jump_target);
       else
-       return throw_exception (loc, ctx, "u8identifier_of not representable"
-                                         " in UTF-8", fun, non_constant_p,
-                                         jump_target);
+       return throw_exception (loc, ctx,
+                               "u8display_string_of not representable"
+                               " in UTF-8",
+                               fun, non_constant_p, jump_target);
     }
   releasing_vec args (make_tree_vector_single (str));
   tree ret = build_special_member_call (NULL_TREE, complete_ctor_identifier,

Reply via email to