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

             Bug #: 51548
           Summary: It is impossible to provide translations of some gcc
                    error messages
    Classification: Unclassified
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: n...@niisi.msk.ru


The following gcc-4.1.2 error messages are not present in gcc.pot and thus
cannot be translated to other languages:

expected identifier or '(' before numeric constant
expected declaration specifiers or '...' before numeric constant
expected identifier or '(' before '}' token
expected declaration or statement at end of input

The reason is that error messages of this kind are issued by the
c_parse_error function (c-common.c) which forms them as catenation of its
input argument GMSGID and some additional string, e.g.:

message = catenate_messages (gmsgid, " before numeric constant");

Even if each piece of the final message is presnt in gcc.pot the
whole message is not, so it is impossible to provide its translation.

Reply via email to