public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: wwieser@gmx.de To: gcc-gnats@gcc.gnu.org Subject: c++/8209: Failure to detect negative bit-field size (!) Date: Sun, 13 Oct 2002 02:06:00 -0000 [thread overview] Message-ID: <20021013090158.6915.qmail@sources.redhat.com> (raw) >Number: 8209 >Category: c++ >Synopsis: Failure to detect negative bit-field size (!) >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Sun Oct 13 02:06:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: wwieser@gmx.de >Release: 3.2.1 20021007 (prerelease) and many more >Organization: >Environment: linux-elf >Description: The bug was verified to be still present in yesterday's CVS (Oct 12): If you compile the following code: struct A { int : (-1); }; you get the (correct) _error_ negative width in bit-field `A::<anonymous>' Now, if you compile struct A { int : (sizeof(int)-5); }; then you just get the _warning_ warning: width of `A::<anonymous>' exceeds its type which is incorrect. As a result, sizeof(A) turns out to be 536870912 (500Mb). >How-To-Repeat: Just compile the four-liner above. >Fix: Should be fairly trivial, but I don't know. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-10-13 9:06 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-10-13 2:06 wwieser [this message] 2002-10-13 2:57 nathan 2002-10-13 8:26 Tim Prince
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=20021013090158.6915.qmail@sources.redhat.com \ --to=wwieser@gmx.de \ --cc=gcc-gnats@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: linkBe 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).