aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-02-22 11:53:45 -0500
committerMarek Polacek <polacek@redhat.com>2020-02-22 11:57:23 -0500
commit6cd5024c8643b4359825219cdc3ae7280018d06d (patch)
tree08dd5d8a1f7308d74bd81beb1538a1f58c8b6777 /gcc
parentd6f420d98126ac51396b89fbe287a32287cd92ed (diff)
downloadgcc-6cd5024c8643b4359825219cdc3ae7280018d06d.zip
gcc-6cd5024c8643b4359825219cdc3ae7280018d06d.tar.gz
gcc-6cd5024c8643b4359825219cdc3ae7280018d06d.tar.bz2
c++: Use %qs in diagnostic message [PR93882]
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a9c0f1a..8a3c9f7 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 31a556a..1947c4d 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;
}