Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 49799 invoked from network); 17 Jul 2007 23:06:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2007 23:06:35 -0000 Received: (qmail 76031 invoked by uid 500); 17 Jul 2007 23:06:28 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 76020 invoked by uid 500); 17 Jul 2007 23:06:28 -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 75933 invoked by uid 99); 17 Jul 2007 23:06:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 16:06:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 16:06:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8681971418E for ; Tue, 17 Jul 2007 16:06:04 -0700 (PDT) Message-ID: <23921265.1184713564498.JavaMail.jira@brutus> Date: Tue, 17 Jul 2007 16:06:04 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-487) [Intel C++/Linux] bogus/inconsistent warning #279 on !"..." MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [Intel C++/Linux] bogus/inconsistent warning #279 on !"..." ----------------------------------------------------------- Key: STDCXX-487 URL: https://issues.apache.org/jira/browse/STDCXX-487 Project: C++ Standard Library Issue Type: Bug Components: External Environment: Intel C++ 9 and 10/Linux Reporter: Martin Sebor >From https://premier.intel.com/premier/IssueDetail.aspx?IssueID=431380: The warning below is not justified and should not be issued. It produces noise for the common idiom: assert(!"...") used, for example, in case and switch statements to indicate unhandled cases. (I believe more recent versions of the EDG front end than the one used by icc 9 do not issue the warning anymore.) $ cat t.cpp && icc -V t.cpp int main (int argc, char**) { (!1 == argc) ? (void)0 : (void)0; (!"" == argc) ? (void)0 : (void)0; } Intel(R) C Compiler for Intel(R) EM64T-based applications, Version 9.1 Build 20070320 Package ID: l_cc_c_9.1.049 Copyright (C) 1985-2007 Intel Corporation. All rights reserved. Edison Design Group C/C++ Front End, version 3.6 (Mar 22 2007 02:18:08) Copyright 1988-2005 Edison Design Group, Inc. t.cpp(4): warning #279: controlling expression is constant (!"" == argc) ? (void)0 : (void)0; ^ GNU ld version 2.15.92.0.2 20040927 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.