[committed] c++: Use %qs in diagnostic message [PR93882]

Message ID 20200222165641.283363-1-polacek@redhat.com
State New
Headers show
Series
  • [committed] c++: Use %qs in diagnostic message [PR93882]
Related show

Commit Message

Marek Polacek Feb. 22, 2020, 4:56 p.m.
A tweak for translators, as requested in the PR.

Tested x86_64-pc-linux-gnu, applying to trunk.

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

	PR c++/93882
	* decl.c (grokdeclarator): Use %qs in a diagnostic message.
---
 gcc/cp/decl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: d6f420d98126ac51396b89fbe287a32287cd92ed
-- 
Marek Polacek • Red Hat, Inc. • 300 A St, Boston, MA

Patch

diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 31a556a0a1f..1947c4ddb7f 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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;
     }