re PR translation/79705 (cp/decl.c message not marked for translation)
authorMarek Polacek <polacek@redhat.com>
Fri, 24 Feb 2017 18:54:13 +0000 (18:54 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 24 Feb 2017 18:54:13 +0000 (18:54 +0000)
PR translation/79705
* decl.c (check_redeclaration_exception_specification): Mark a string
for translation.  Make the pointer const.

From-SVN: r245717

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

index d7470221d153ba00ad9c38188ed729e88b4920aa..7bf24cd41a97ced39ca433b9605a40838eaeba16 100644 (file)
@@ -1,3 +1,9 @@
+2017-02-24  Marek Polacek  <polacek@redhat.com>
+
+       PR translation/79705
+       * decl.c (check_redeclaration_exception_specification): Mark a string
+       for translation.  Make the pointer const.
+
 2017-02-23  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/79361
index fa1d645e1efd979260f3a9052193c245196507ba..3dd1f5c7892fe3bd411fe9eed5c63f21bd953520 100644 (file)
@@ -1273,8 +1273,8 @@ check_redeclaration_exception_specification (tree new_decl,
   if (! DECL_IS_BUILTIN (old_decl)
       && !comp_except_specs (new_exceptions, old_exceptions, ce_normal))
     {
-      const char *msg
-       = "declaration of %qF has a different exception specifier";
+      const char *const msg
+       = G_("declaration of %qF has a different exception specifier");
       bool complained = true;
       location_t new_loc = DECL_SOURCE_LOCATION (new_decl);
       if (DECL_IN_SYSTEM_HEADER (old_decl))