public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de> To: gcc-gnats@gcc.gnu.org Subject: c/10333: typeof (bitfield) is accepted but doesn't work Date: Mon, 07 Apr 2003 11:56:00 -0000 [thread overview] Message-ID: <20030407115029.18201.qmail@sources.redhat.com> (raw) >Number: 10333 >Category: c >Synopsis: typeof (bitfield) is accepted but doesn't work >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Mon Apr 07 11:56:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Christian Ehrhardt >Release: 3.2,3.3,3.4 >Organization: >Environment: SunOS theseus 5.9 Generic_112233-03 sun4u sparc SUNW,Ultra-4 >Description: Using typeof on a bit field is accepted but it doesn't create a bit field. IMHO typeof should be treated the same as sizeof, i.e. it should not be allow on bit fields. Alternatively the following should create a global bit field y, but it in fact creates an unsigned int y: struct { unsigned int a:3; } x; typeof (x.a) y; int main () { y = 100; printf ("%d %d\n", y, sizeof (y)); } regards Christian >How-To-Repeat: See description. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2003-04-07 11:56 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-07 11:56 Christian Ehrhardt [this message] 2003-05-15 5:29 bangerth
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=20030407115029.18201.qmail@sources.redhat.com \ --to=ehrhardt@mathematik.uni-ulm.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).