summaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authormueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-30 23:08:59 +0000
committermueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-30 23:08:59 +0000
commit82cae756aba72dc929e7ba4c886fca908d0bb9a9 (patch)
tree06c888ae6a22923dea378a7c4280ade2b3761a7e /gcc/cp/decl.c
parent01f9159ae406888c49cb2c98589f935782faf8b7 (diff)
downloadgcc-82cae756aba72dc929e7ba4c886fca908d0bb9a9.tar.gz
2006-10-30 Dirk Mueller <dmueller@suse.de>
PR c++/28669 * decl.c (grokfndecl): Duplicate warning message for easier translation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118205 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 51a1bc9659e..2645da28295 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -48,6 +48,7 @@ Boston, MA 02110-1301, USA. */
#include "c-common.h"
#include "c-pragma.h"
#include "diagnostic.h"
+#include "intl.h"
#include "debug.h"
#include "timevar.h"
#include "tree-flow.h"
@@ -6085,8 +6086,10 @@ grokfndecl (tree ctype,
DECL_EXTERNAL (decl) = 1;
if (quals && TREE_CODE (type) == FUNCTION_TYPE)
{
- error ("%smember function %qD cannot have cv-qualifier",
- (ctype ? "static " : "non-"), decl);
+ error (ctype
+ ? G_("static member function %qD cannot have cv-qualifier")
+ : G_("non-static member function %qD cannot have cv-qualifier"),
+ decl);
quals = TYPE_UNQUALIFIED;
}