public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/2707: gcc does not warn on truncate
@ 2003-05-08  8:36 Dara Hazeghi
  0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-05-08  8:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/2707; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c/2707: gcc does not warn on truncate
Date: Thu, 8 May 2003 01:31:22 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=2707
 
 Confirmed with mainline 20030507
 
 Dara
 


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

* Re: c/2707: gcc does not warn on truncate
@ 2001-10-30 15:10 neil
  0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2001-10-30 15:10 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jhabermann, nobody

Synopsis: gcc does not warn on truncate

State-Changed-From-To: open->analyzed
State-Changed-By: neil
State-Changed-When: Tue Oct 30 15:10:51 2001
State-Changed-Why:
    Confirmed.  I don't think this is easy to fix with GCC's
    current architecture. 

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


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

* c/2707: gcc does not warn on truncate
@ 2001-05-01 11:06 jhabermann
  0 siblings, 0 replies; 3+ messages in thread
From: jhabermann @ 2001-05-01 11:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2707
>Category:       c
>Synopsis:       gcc does not warn on truncate
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 01 11:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     jhabermann@tricord.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
gcc does not warn when assigning a "larger" variable
to a smaller one.  Example:

#include <stdio.h>
int
main(int argc, char **argv)
{
    unsigned long i32;
    unsigned short i16;
    i32 = 0xffffffff;
    i16 = i32; /* should warn here, I think */
    printf("i32 = 0x%lx, i16 = 0x%x\n", i32, (unsigned int)i16);
    printf("sizeof(i32) = %d, sizeof(i16) = %d\n", sizeof(i32),
	sizeof(i16));
    return(0);
}

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-05-08  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08  8:36 c/2707: gcc does not warn on truncate Dara Hazeghi
  -- strict thread matches above, loose matches on Subject: below --
2001-10-30 15:10 neil
2001-05-01 11:06 jhabermann

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