From 15fb719cf9ac821466e99a615dbf6e1a2f932011 Mon Sep 17 00:00:00 2001 From: mueller Date: Mon, 30 Oct 2006 23:32:29 +0000 Subject: [PATCH] 2006-10-30 Dirk Mueller PR c++/28704 * decl.c (grokdeclarator): Duplicate diagnostic message for easier translation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118208 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/decl.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ad1f12681e5..7db62ec9231 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,11 @@ 2006-10-30 Dirk Mueller + PR c++/28704 + * decl.c (grokdeclarator): Duplicate diagnostic message + for easier translation. + +2006-10-30 Dirk Mueller + PR c++/6321 * decl.c (grokfndecl): Use check_main_parameter_types. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 846089b52c1..67a13522d9c 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8039,8 +8039,9 @@ grokdeclarator (const cp_declarator *declarator, if (cp_type_quals (type) != TYPE_UNQUALIFIED && (current_class_type == NULL_TREE || staticp) ) { - error ("qualified function types cannot be used to declare %s functions", - (staticp? "static member" : "free")); + error (staticp + ? G_("qualified function types cannot be used to declare static member functions") + : G_("qualified function types cannot be used to declare free functions")); type = TYPE_MAIN_VARIANT (type); } -- 2.11.0