2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-24 12:51:15 +08:00

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
This commit is contained in:
Dirk Mueller 2006-10-30 23:08:59 +00:00 committed by Dirk Mueller
parent 95220fdfba
commit e7c41c9948
2 changed files with 11 additions and 2 deletions

@ -1,3 +1,9 @@
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_().

@ -48,6 +48,7 @@ Boston, MA 02110-1301, USA. */
#include "c-common.h"
#include "c-pragma.h"
#include "diagnostic.h"
#include "intl.h"
#include "debug.h"
#include "timevar.h"
#include "tree-flow.h"
@ -6085,8 +6086,10 @@ grokfndecl (tree ctype,
DECL_EXTERNAL (decl) = 1;
if (quals && TREE_CODE (type) == FUNCTION_TYPE)
{
error ("%smember function %qD cannot have cv-qualifier",
(ctype ? "static " : "non-"), decl);
error (ctype
? G_("static member function %qD cannot have cv-qualifier")
: G_("non-static member function %qD cannot have cv-qualifier"),
decl);
quals = TYPE_UNQUALIFIED;
}