This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/51548] New: It is impossible to provide translations of some gcc error messages


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: unassigned@gcc.gnu.org
        ReportedBy: niva@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]