This PR complains that a message is not marked for translation. Also make the pointer const for the benefit of -Wformat.
Bootstrapped/regtested on x86_64-linux, ok for trunk? 2017-02-24 Marek Polacek <pola...@redhat.com> PR translation/79705 * decl.c (check_redeclaration_exception_specification): Mark a string for translation. Make the pointer const. diff --git gcc/cp/decl.c gcc/cp/decl.c index fa1d645..3dd1f5c 100644 --- gcc/cp/decl.c +++ 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)) Marek