[patch] PR c++/21768: ICE in error message due to violation of coding conventions
Gabriel Dos Reis
gdr@integrable-solutions.net
Thu May 26 15:22:00 GMT 2005
Jakub Jelinek <jakub@redhat.com> writes:
| On Thu, May 26, 2005 at 04:48:27PM +0200, Volker Reichelt wrote:
| > error ("used %d template parameter%s instead of %d",
| > TREE_VEC_LENGTH (tmpl_parms),
| > TREE_VEC_LENGTH (tmpl_parms) == 1 ? "" : "s",
| > TREE_VEC_LENGTH (parms));
| >
| > The attached patch fixes that by removing the conditional and using
| > "parameter(s)" in the text. This should simplify i18n efforts.
|
| Just note that the %.0s format specifier the german translation uses
| works with the patch I posted yesterday:
| http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02412.html
|
| Maybe we want nerror etc. functions which will use ngettext() rather than
| _()? Then we would handle plurals properly...
Yes, but if it is to support the above trick which is sufficiently
odd, I think it is not necessary.
-- Gaby
More information about the Gcc-patches
mailing list