This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
ada/4601: printf() arg checking doesn't work with merged strings
- To: gcc-gnats at gcc dot gnu dot org
- Subject: ada/4601: printf() arg checking doesn't work with merged strings
- From: dgillies at graviton dot com
- Date: 18 Oct 2001 03:42:51 -0000
- Reply-To: dgillies at graviton dot com
>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 <Donald W. Gillies>
>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: