c++: Use %qs in diagnostic message [PR93882]
authorMarek Polacek <polacek@redhat.com>
Sat, 22 Feb 2020 16:53:45 +0000 (11:53 -0500)
committerMarek Polacek <polacek@redhat.com>
Sat, 22 Feb 2020 16:57:23 +0000 (11:57 -0500)
A tweak for translators, as requested in the PR.

2020-02-22  Marek Polacek  <polacek@redhat.com>

PR c++/93882
* decl.c (grokdeclarator): Use %qs in a diagnostic message.

gcc/cp/ChangeLog
gcc/cp/decl.c

index a9c0f1a8ecfa925347cbfe1120ca0d31fa192c90..8a3c9f77ad0df2cf2b77b3444afea7af5030159d 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-22  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/93882
+       * decl.c (grokdeclarator): Use %qs in a diagnostic message.
+
 2020-02-21  Martin Sebor  <msebor@redhat.com>
 
        PR gcov-profile/93753
index 31a556a0a1f80ac39380c0eaed63ecdd1828102a..1947c4ddb7ff865c5ad5a6973ef6c71a07b880b8 100644 (file)
@@ -11251,7 +11251,7 @@ grokdeclarator (const cp_declarator *declarator,
   if (constinit_p && typedef_p)
     {
       error_at (declspecs->locations[ds_constinit],
-               "%<constinit%> cannot appear in a typedef declaration");
+               "%qs cannot appear in a typedef declaration", "constinit");
       return error_mark_node;
     }