diff options
author | Marek Polacek <polacek@redhat.com> | 2017-02-24 18:54:13 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2017-02-24 18:54:13 +0000 |
commit | 5713d448534698c8ac23aa52f015b2c88185cb40 (patch) | |
tree | 5c4d67e7c804ac3f0d0adb628ef65f241fd9ecab /gcc | |
parent | fd527ec190c87da0eedf45b719bc98977fb28857 (diff) | |
download | gcc-5713d448534698c8ac23aa52f015b2c88185cb40.zip gcc-5713d448534698c8ac23aa52f015b2c88185cb40.tar.gz gcc-5713d448534698c8ac23aa52f015b2c88185cb40.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/decl.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d747022..7bf24cd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index fa1d645..3dd1f5c 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)) |