From: Marek Polacek Date: Fri, 24 Feb 2017 18:54:13 +0000 (+0000) Subject: re PR translation/79705 (cp/decl.c message not marked for translation) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5713d448534698c8ac23aa52f015b2c88185cb40;p=gcc.git re PR translation/79705 (cp/decl.c message not marked for translation) PR translation/79705 * decl.c (check_redeclaration_exception_specification): Mark a string for translation. Make the pointer const. From-SVN: r245717 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d7470221d15..7bf24cd41a9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2017-02-24 Marek Polacek + + PR translation/79705 + * decl.c (check_redeclaration_exception_specification): Mark a string + for translation. Make the pointer const. + 2017-02-23 Paolo Carlini PR c++/79361 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index fa1d645e1ef..3dd1f5c7892 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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))