From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20543 invoked by alias); 27 Apr 2008 05:49:54 -0000 Received: (qmail 20394 invoked by uid 48); 27 Apr 2008 05:49:07 -0000 Date: Sun, 27 Apr 2008 05:49:00 -0000 Message-ID: <20080427054907.20393.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug testsuite/36057] struct-layout-1_generate.c uses non-standard '%n$' operand number formats In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ubizjak at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg01904.txt.bz2 ------- 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