Commit e7c41c99 by Dirk Mueller Committed by Dirk Mueller

re PR c++/28669 (%s substituted with static/non- can't be properly translated)

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

       PR c++/28669
       * decl.c (grokfndecl): Duplicate warning message for
       easier translation.

From-SVN: r118205
parent 95220fdf
2006-10-30 Dirk Mueller <dmueller@suse.de> 2006-10-30 Dirk Mueller <dmueller@suse.de>
PR c++/28669
* decl.c (grokfndecl): Duplicate warning message for
easier translation.
2006-10-30 Dirk Mueller <dmueller@suse.de>
* typeck.c (build_unary_op): Fix indenting. Use G_(). * typeck.c (build_unary_op): Fix indenting. Use G_().
2006-10-29 Dirk Mueller <dmueller@suse.de> 2006-10-29 Dirk Mueller <dmueller@suse.de>
......
...@@ -48,6 +48,7 @@ Boston, MA 02110-1301, USA. */ ...@@ -48,6 +48,7 @@ Boston, MA 02110-1301, USA. */
#include "c-common.h" #include "c-common.h"
#include "c-pragma.h" #include "c-pragma.h"
#include "diagnostic.h" #include "diagnostic.h"
#include "intl.h"
#include "debug.h" #include "debug.h"
#include "timevar.h" #include "timevar.h"
#include "tree-flow.h" #include "tree-flow.h"
...@@ -6085,8 +6086,10 @@ grokfndecl (tree ctype, ...@@ -6085,8 +6086,10 @@ grokfndecl (tree ctype,
DECL_EXTERNAL (decl) = 1; DECL_EXTERNAL (decl) = 1;
if (quals && TREE_CODE (type) == FUNCTION_TYPE) if (quals && TREE_CODE (type) == FUNCTION_TYPE)
{ {
error ("%smember function %qD cannot have cv-qualifier", error (ctype
(ctype ? "static " : "non-"), decl); ? G_("static member function %qD cannot have cv-qualifier")
: G_("non-static member function %qD cannot have cv-qualifier"),
decl);
quals = TYPE_UNQUALIFIED; quals = TYPE_UNQUALIFIED;
} }
......
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