When translating the message

  %s ignored with %s and %<%%%c%> %s format

I wanted to switch order of the arguments to get a natural message in Swedish. 
So I tried with

  %1$s ignorerad med %2$s och %4$s-format %<%%%3$c%>

That fails, however, with a message

  c.c:5: internal compiler error: in pp_base_format_text, at pretty-print.c:374

And looking at the code, it does indeed not seem to recognise the "m$" 
construct.

But I think it would be reasonable for it to do so.  It will be hard to
translate all messages passed through that function to all languages without
changing the order of the arguments in any of them.

-- 
           Summary: pp_base_format_text ought to recognise "m$" directives
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: goeran at uddeborg dot se
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to