From mboxrd@z Thu Jan 1 00:00:00 1970 From: dgillies@graviton.com To: gcc-gnats@gcc.gnu.org Subject: ada/4601: printf() arg checking doesn't work with merged strings Date: Wed, 17 Oct 2001 20:46:00 -0000 Message-id: <20011018034251.24864.qmail@sourceware.cygnus.com> X-SW-Source: 2001-10/msg00366.html List-Id: >Number: 4601 >Category: ada >Synopsis: printf() arg checking doesn't work with merged strings >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Oct 17 20:46:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: dgillies@graviton.com >Release: unknown-1.0 >Organization: >Environment: gcc version 2.95.2 19991024 (release) FreeBSD 4.2 >Description: compile with -Wformat : printf( "%02bx", 123); printf( "%02" "b" "x", 123 ); line #1 above is a compile error. line #2 above is not a compile error. they are semantically exactly the same. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: