This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, Committed] Fix PR c++/28704, another diagnostic localisation issue


Hi, 

bootstrapped, tested via "make gcc.pot", committed to mainline. 

 2006-10-30  Dirk Mueller  <dmueller@suse.de>
 
	PR c++/28704
	* decl.c (grokdeclarator): Duplicate diagnostic message
	for easier translation. Fix line-wrapping.


--- decl.c	(revision 118206)
+++ decl.c	(working copy)
@@ -8039,8 +8039,11 @@ grokdeclarator (const cp_declarator *dec
 	  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);
 	    }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]