]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++/reflection: Fix wrong function name in error messages
authorYang Kun <yangkun@disroot.org>
Wed, 8 Apr 2026 13:38:02 +0000 (15:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 8 Apr 2026 13:38:02 +0000 (15:38 +0200)
gcc/cp/ChangeLog:
* reflect.cc (eval_display_string_of): Fix copy-paste error in exception
messages.

Signed-off-by: Yang Kun <yangkun@disroot.org>
gcc/cp/reflect.cc

index 93d2affbd19495d6b7fb26455a6fc4ec09a7c272..a2eb5ff1486f88abf0a36eb2a39443d79106ca10 100644 (file)
@@ -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,