re PR c++/28704 (%s substituted with "static member"/"free" can't be properly translated)

2006-10-30  Dirk Mueller  <dmueller@suse.de>

       PR c++/28704
       * decl.c (grokdeclarator): Duplicate diagnostic message
       for easier translation.

From-SVN: r118208
This commit is contained in:
Dirk Mueller 2006-10-30 23:32:29 +00:00 committed by Dirk Mueller
parent 8975fa18ad
commit ebbc3ce18e
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-10-30 Dirk Mueller <dmueller@suse.de>
PR c++/28704
* decl.c (grokdeclarator): Duplicate diagnostic message
for easier translation.
2006-10-30 Dirk Mueller <dmueller@suse.de>
PR c++/6321

View File

@ -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);
}