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-Tag: basepoints/gcc-8~820 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5713d448534698c8ac23aa52f015b2c88185cb40;p=thirdparty%2Fgcc.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 d7470221d153..7bf24cd41a97 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 fa1d645e1efd..3dd1f5c7892f 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))