In gcc/cp/parser.c there is this code in cp_parser_parameter_declaration

            error ("%H%sparameter pack %qD cannot have a default argument",
                   &declarator_token_start->location,
                   kind, id_declarator->u.id.unqualified_name);
          else
            error ("%H%sparameter pack cannot have a default argument",
                   &declarator_token_start->location, kind);

where "kind" has previously been assigned either the empty string or the word
"template" followed by a space.  There is no way to translate the word
"template".  For this to work in all languages, I suspect the two messages
needs to be split up in four complete messages, with and without "template",
rather than composed from pieces like this.


-- 
           Summary: %s substituted with regular word can't be properly
                    translated
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: goeran at uddeborg dot se


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38761

Reply via email to