public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Zack Weinberg <zack@codesourcery.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: ada/4601: printf() arg checking doesn't work with merged strings
Date: Wed, 17 Oct 2001 21:16:00 -0000	[thread overview]
Message-ID: <20011018041603.32106.qmail@sourceware.cygnus.com> (raw)

The following reply was made to PR ada/4601; it has been noted by GNATS.

From: Zack Weinberg <zack@codesourcery.com>
To: dgillies@graviton.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: ada/4601: printf() arg checking doesn't work with merged strings
Date: Wed, 17 Oct 2001 21:09:35 -0700

 On Thu, Oct 18, 2001 at 03:42:51AM -0000, dgillies@graviton.com wrote:
 > 
 > >Number:         4601
 > >Category:       ada
 
 Why on earth do you think this is a bug in the _Ada_ front end?
 
 ...
 > 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.
 
 With 2.95.4-to-be, and 3.0:
 
 test.c: In function `x':
 test.c:4: warning: unknown conversion type character `b' in format
 test.c:4: warning: too many arguments for format
 test.c:5: warning: unknown conversion type character `b' in format
 test.c:5: warning: too many arguments for format
 
 zw


             reply	other threads:[~2001-10-17 21:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-17 21:16 Zack Weinberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-10-17 20:46 dgillies

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011018041603.32106.qmail@sourceware.cygnus.com \
    --to=zack@codesourcery.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).