--- Comment #1 from alexandre dot nunes at gmail dot com 2008-09-24 17:29
---
Created an attachment (id=16403)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16403&action=view)
This is the first testcase.
compile with gcc -O2 -W -Wall -Wstrict-overflow=5
--
http://gcc.gnu.org
--- Comment #2 from pinskia at gmail dot com 2008-09-24 17:44 ---
Subject: Re: New: GCC applies signed strict-overflow rules to unsigned short
type
When doing addition unsigned short is promoted to an signed int. So
this is not a bug. That is unsigned short + 1 is a signed int since
--- Comment #3 from alexandre dot nunes at gmail dot com 2008-09-24 20:42
---
(In reply to comment #2)
> Subject: Re: New: GCC applies signed strict-overflow rules to unsigned short
> type
>
> When doing addition unsigned short is promoted to an signed int. So
> this is not a bug.