Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 54675 invoked from network); 1 Sep 2006 16:04:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 16:04:46 -0000 Received: (qmail 12815 invoked by uid 500); 1 Sep 2006 16:04:46 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 12800 invoked by uid 500); 1 Sep 2006 16:04:46 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 12789 invoked by uid 99); 1 Sep 2006 16:04:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 09:04:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 09:04:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4E9A97142F4 for ; Fri, 1 Sep 2006 16:01:22 +0000 (GMT) Message-ID: <15364939.1157126482309.JavaMail.jira@brutus> Date: Fri, 1 Sep 2006 09:01:22 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-283) [MSVC 8.0] bogus warning 4307 on dead code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [MSVC 8.0] bogus warning 4307 on dead code ------------------------------------------ Key: STDCXX-283 URL: http://issues.apache.org/jira/browse/STDCXX-283 Project: C++ Standard Library Issue Type: Bug Components: External Affects Versions: 4.1.2, 4.1.3 Environment: MSVC 7.0 through 8.0 Reporter: Martin Sebor $ cat t.cpp && cl -W3 t.cpp void foo (const int *s) { const unsigned i = 0xffffffffU; if (0xffffffffU == i) s = 0; else s += i; } int main () { foo (0); } Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. t.cpp t.cpp(8) : warning C4307: '*' : integral constant overflow Microsoft (R) Incremental Linker Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. /out:t.exe t.obj -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira