public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/2511: -pedantic not warning about bitfield overflow
@ 2002-01-29  9:24 neil
  0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-01-29  9:24 UTC (permalink / raw)
  To: dann, gcc-bugs, gcc-prs, neil, nobody

Synopsis: -pedantic not warning about bitfield overflow

Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Tue Jan 29 09:24:51 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Tue Jan 29 09:24:51 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=2511


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

* Re: c/2511: -pedantic not warning about bitfield overflow
@ 2002-02-01 20:56 neil
  0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-02-01 20:56 UTC (permalink / raw)
  To: dann, gcc-bugs, gcc-prs, neil

Synopsis: -pedantic not warning about bitfield overflow

State-Changed-From-To: closed->analyzed
State-Changed-By: neil
State-Changed-When: Fri Feb  1 20:56:47 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=2511


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

* c/2511: -pedantic not warning about bitfield overflow
@ 2001-04-08 18:56 Dan Nicolaescu
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Nicolaescu @ 2001-04-08 18:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2511
>Category:       c
>Synopsis:       -pedantic not warning about bitfield overflow
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 08 18:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dan Nicolaescu <dann@godzilla.ics.uci.edu>
>Release:        gcc version 3.1 20010314 (experimental)
>Organization:
>Environment:
i386-pc-linux-gnu
>Description:
gcc -pedantic does not warn about bitfield overflow.
For example:

struct test
{
  signed int a:16;
  signed int b:8;
  int pad:8;
};

struct test c = {32768, 256, 0};

signed short int d = 32768;
signed char  e = 256;

compile with gcc -pedantic 
and it will warn aboud d and e: 

t.c:10: warning: overflow in implicit constant conversion
t.c:11: warning: overflow in implicit constant conversion

but nothing about the initialization of struct test c;
IMHO it should warn about those too. 

>How-To-Repeat:
compile the example with gcc -pedantic and see that there are no 
warnings generated for struc test c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 but present in all releases


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

end of thread, other threads:[~2002-02-02  4:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-29  9:24 c/2511: -pedantic not warning about bitfield overflow neil
  -- strict thread matches above, loose matches on Subject: below --
2002-02-01 20:56 neil
2001-04-08 18:56 Dan Nicolaescu

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