Commit ebbc3ce1 by Dirk Mueller Committed by Dirk Mueller

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
parent 8975fa18
2006-10-30 Dirk Mueller <dmueller@suse.de> 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 PR c++/6321
* decl.c (grokfndecl): Use check_main_parameter_types. * decl.c (grokfndecl): Use check_main_parameter_types.
......
...@@ -8039,8 +8039,9 @@ grokdeclarator (const cp_declarator *declarator, ...@@ -8039,8 +8039,9 @@ grokdeclarator (const cp_declarator *declarator,
if (cp_type_quals (type) != TYPE_UNQUALIFIED if (cp_type_quals (type) != TYPE_UNQUALIFIED
&& (current_class_type == NULL_TREE || staticp) ) && (current_class_type == NULL_TREE || staticp) )
{ {
error ("qualified function types cannot be used to declare %s functions", error (staticp
(staticp? "static member" : "free")); ? 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); type = TYPE_MAIN_VARIANT (type);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment