From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12172 invoked by alias); 22 Mar 2012 06:13:55 -0000 Received: (qmail 12155 invoked by uid 22791); 22 Mar 2012 06:13:53 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_JM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Mar 2012 06:13:34 +0000 From: "jmichae3 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/52661] negative maxint for long long gives warning Date: Thu, 22 Mar 2012 06:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jmichae3 at yahoo dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg01779.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52661 --- Comment #3 from Jim Michaels 2012-03-22 06:13:33 UTC --- you are not paying attention to the issue. the issue is that this constant is causing a compiler warning when it should not, and the compiler is treating a valid signed constant as an unsigned integer. I recompiled with added -fno-strict-aliasing -fwrapv arguments and I got this message. it should NOT be unsigned! maxint64-bug.cpp:4:19: warning: integer constant is so large that it is unsigned [enabled by default] maxint64-bug.cpp:4:5: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]