This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23501] New: pp_base_format_text ought to recognise "m$" directives
- From: "goeran at uddeborg dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2005 20:36:12 -0000
- Subject: [Bug c/23501] New: pp_base_format_text ought to recognise "m$" directives
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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