]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/28704 (%s substituted with "static member"/"free" can't be properly translated)
authorDirk Mueller <dmueller@suse.de>
Mon, 30 Oct 2006 23:32:29 +0000 (23:32 +0000)
committerDirk Mueller <mueller@gcc.gnu.org>
Mon, 30 Oct 2006 23:32:29 +0000 (23:32 +0000)
2006-10-30  Dirk Mueller  <dmueller@suse.de>

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

From-SVN: r118208

gcc/cp/ChangeLog
gcc/cp/decl.c

index ad1f12681e59ac23ec5b1a82e2b9aa84410d390c..7db62ec92314bca09368530607d1b747bae83d9a 100644 (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
index 846089b52c17c93106f8a6971d288c820a97b3c1..67a13522d9c5edafb51206553ee83bc38a3b06fd 100644 (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);
            }