public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bruce Korb <bruce.korb@gmail.com>
To: GCC List <gcc@gcc.gnu.org>
Subject: Next question: sizeof(char buf[2042])
Date: Wed, 20 Jun 2018 18:51:00 -0000	[thread overview]
Message-ID: <CAKRnqN+=yBGohoJ7vqJqtU=Mxsn1GHJ+E3mMNQC1B5Dt3fcrtw@mail.gmail.com> (raw)

Yeah, I guess this is Clang, but is it a legal interpretation for Clang?

In file included from gnu-pw-mgr.c:24:

In file included from ./fwd.h:288:

*./seed.c:178:43: **warning: **sizeof on pointer operation will return size
of 'const char *' instead of 'const char [2042]'*

*      [-Wsizeof-array-decay]*

        char * tag = scribble_get(sizeof (tag_fmt) + strlen(OPT_ARG(TAG)));

*                                          ^~~~~~~*


*It seems like a pretty brain damaged interpretation.*

-- 
 - Bruce

             reply	other threads:[~2018-06-20 18:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20 18:51 Bruce Korb [this message]
2018-06-20 18:52 ` Bruce Korb
2018-06-20 19:59 ` Marek Polacek

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='CAKRnqN+=yBGohoJ7vqJqtU=Mxsn1GHJ+E3mMNQC1B5Dt3fcrtw@mail.gmail.com' \
    --to=bruce.korb@gmail.com \
    --cc=gcc@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).