public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/3347: Too large bitfields should be errors
@ 2001-06-21 13:06 h.b.furuseth
0 siblings, 0 replies; 3+ messages in thread
From: h.b.furuseth @ 2001-06-21 13:06 UTC (permalink / raw)
To: gcc-gnats; +Cc: h.b.furuseth
>Number: 3347
>Category: c
>Synopsis: Too large bitfields should be errors
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Thu Jun 21 13:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Hallvard B Furuseth
>Release: 3.0 20010611 (prerelease)
>Organization:
University of Oslo, Norway
>Environment:
System: SunOS bombur.uio.no 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ./configure --quiet
>Description:
A too large bitfield is a constraint violation of C99 6.7.2.1p3.
I think it violates ANSI and K&R too, but I can't check that.
Gcc only gives a plain warning, even under -std=c99 -pedantic.
>How-To-Repeat:
bash$ echo 'struct { int i : 9999; } x;' > a.c
bash$ ./xgcc -B./ -std=c99 -pedantic -o /dev/null -S a.c
a.c:1: warning: width of `i' exceeds its type
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/3347: Too large bitfields should be errors
@ 2002-02-01 20:55 neil
0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-02-01 20:55 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, h.b.furuseth, neil
Synopsis: Too large bitfields should be errors
State-Changed-From-To: closed->analyzed
State-Changed-By: neil
State-Changed-When: Fri Feb 1 20:55:14 2002
State-Changed-Why:
Patch haad to be reverted. Might be fixed before 3.1, otherwise 3.2.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3347
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/3347: Too large bitfields should be errors
@ 2002-01-29 9:22 neil
0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-01-29 9:22 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, h.b.furuseth, neil, nobody
Synopsis: Too large bitfields should be errors
Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Tue Jan 29 09:22:04 2002
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Tue Jan 29 09:22:04 2002
State-Changed-Why:
Fixed for 3.1 with
http://gcc.gnu.org/ml/gcc-cvs/2002-01/msg00876.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3347
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-02-02 4:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-21 13:06 c/3347: Too large bitfields should be errors h.b.furuseth
2002-01-29 9:22 neil
2002-02-01 20:55 neil
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).