------- Comment #1 from ubizjak at gmail dot com  2008-04-27 05:49 -------
"IEEE Std 1003.1, 2004 Edition" [1] says:

Conversions can be applied to the nth argument after the format in the argument
list, rather than to the next unused argument. In this case, the conversion
specifier character % (see below) is replaced by the sequence "%n$", where n is
a decimal integer in the range [1,{NL_ARGMAX}], giving the position of the
argument in the argument list. This feature provides for the definition of
format strings that select arguments in an order appropriate to specific
languages (see the EXAMPLES section).

[1] http://www.opengroup.org/onlinepubs/009695399/functions/printf.html

Due to this, I would say that "%n$" is not non-standard.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|struct-layout-1_generate.c  |struct-layout-1_generate.c
                   |uses non-standard  '%n$'    |uses non-standard  '%n$'
                   |operand number formats      |operand number formats


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

Reply via email to