public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10333: typeof (bitfield) is accepted but doesn't work
@ 2003-05-15  5:29 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-05-15  5:29 UTC (permalink / raw)
  To: ehrhardt, gcc-bugs, gcc-prs, nobody

Synopsis: typeof (bitfield) is accepted but doesn't work

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu May 15 05:29:18 2003
State-Changed-Why:
    Confirmed. Not very useful, but surprising behavior.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10333


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c/10333: typeof (bitfield) is accepted but doesn't work
@ 2003-04-07 11:56 Christian Ehrhardt
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Ehrhardt @ 2003-04-07 11:56 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-15  5:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-15  5:29 c/10333: typeof (bitfield) is accepted but doesn't work bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-04-07 11:56 Christian Ehrhardt

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).