From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19307 invoked by alias); 4 Nov 2005 15:28:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19275 invoked by uid 48); 4 Nov 2005 15:28:36 -0000 Date: Fri, 04 Nov 2005 15:28:00 -0000 Message-ID: <20051104152836.19274.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/24599] [4.0/4.1 regression] Overflow for true value In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" X-SW-Source: 2005-11/txt/msg00654.txt.bz2 List-Id: ------- Comment #6 from pinskia at gcc dot gnu dot org 2005-11-04 15:28 ------- Here is a testcase which is better representive of the issue (compile with -std=c99 -pedantic-errors): #include int main (int argc, char **argv) { if ((bool)((1527719483 + 1477819644))) { } return 0; } bool t1 = true; -------------- t.c: In function ‘main’: t.c:6: warning: integer overflow in expression t.c: At top level: t.c:12: error: overflow in constant expression -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|tree-optimization |c Keywords| |diagnostic, rejects-valid Known to fail|4.0.3 |4.0.3 4.1.0 Known to work|4.1.0 3.4.0 |3.4.0 Summary|[4.0 regression] segv after |[4.0/4.1 regression] |overflow detection |Overflow for true value http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24599