public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10319: shift right bug
@ 2003-04-06 18:10 neil
0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2003-04-06 18:10 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jens.harms, nobody
Synopsis: shift right bug
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Sun Apr 6 18:10:43 2003
State-Changed-Why:
Not a bug - undefined behaviour.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10319
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/10319: shift right bug
@ 2003-04-06 15:56 Falk Hueffner
0 siblings, 0 replies; 3+ messages in thread
From: Falk Hueffner @ 2003-04-06 15:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/10319; it has been noted by GNATS.
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
To: jens.harms@informatik.uni-oldenburg.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/10319: shift right bug
Date: 06 Apr 2003 17:50:06 +0200
jens.harms@informatik.uni-oldenburg.de writes:
> >Description:
> uint a = 16; uint w = 255;
> printf("%d",a >> w );
>
> a>>w is NOT NULL on x86 architecture (p3,athlon, duron)
Not a bug. Shift count >= width of type is undefined. It would be nice
to warn here, though, as we do for 16 >> 255.
--
Falk
^ permalink raw reply [flat|nested] 3+ messages in thread
* c/10319: shift right bug
@ 2003-04-06 15:16 jens.harms
0 siblings, 0 replies; 3+ messages in thread
From: jens.harms @ 2003-04-06 15:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 10319
>Category: c
>Synopsis: shift right bug
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 06 15:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: jens.harms@informatik.uni-oldenburg.de
>Release: unknown-1.0
>Organization:
>Environment:
gcc2.93 and gcc3.2
>Description:
uint a = 16; uint w = 255;
printf("%d",a >> w );
a>>w is NOT NULL on x86 architecture (p3,athlon, duron)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-06 18:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-06 18:10 c/10319: shift right bug neil
-- strict thread matches above, loose matches on Subject: below --
2003-04-06 15:56 Falk Hueffner
2003-04-06 15:16 jens.harms
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).