In gcc/cp/typeck.c there are these messages: pedwarn ("ISO C++ forbids %sing an enum", (code == PREINCREMENT_EXPR || code == POSTINCREMENT_EXPR) ? "increment" : "decrement"); error ("cannot %s a pointer to incomplete type %qT", ((code == PREINCREMENT_EXPR || code == POSTINCREMENT_EXPR) ? "increment" : "decrement"), TREE_TYPE (argtype)); pedwarn ("ISO C++ forbids %sing a pointer of type %qT", ((code == PREINCREMENT_EXPR || code == POSTINCREMENT_EXPR) ? "increment" : "decrement"), argtype); Here "increment" and "decrement" will not be translated. Composing sentences like this also makes translation hard, probably impossible in some languages. Please make two complete separate messages for each case.
Confirmed.
Subject: Bug 29089 Author: mueller Date: Sun Oct 29 19:52:52 2006 New Revision: 118156 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118156 Log: PR c++/29089 * typeck.c (build_unary_op): Duplicate warning message for easier translation. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c
Fixed for 4.3