Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 7883 invoked from network); 13 Feb 2008 23:07:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 23:07:29 -0000 Received: (qmail 55877 invoked by uid 500); 13 Feb 2008 23:07:24 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 55854 invoked by uid 500); 13 Feb 2008 23:07:23 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 55845 invoked by uid 99); 13 Feb 2008 23:07:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 15:07:23 -0800 X-ASF-Spam-Status: No, hits=-2000.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; Wed, 13 Feb 2008 23:07:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9968D714043 for ; Wed, 13 Feb 2008 15:07:08 -0800 (PST) Message-ID: <7569680.1202944028619.JavaMail.jira@brutus> Date: Wed, 13 Feb 2008 15:07:08 -0800 (PST) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Created: (STDCXX-728) [HP aCC 6.16] bogus warning #20200: potential null pointer dereference MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [HP aCC 6.16] bogus warning #20200: potential null pointer dereference ---------------------------------------------------------------------- Key: STDCXX-728 URL: https://issues.apache.org/jira/browse/STDCXX-728 Project: C++ Standard Library Issue Type: Bug Components: External Environment: $ uname -sr && aCC -V HP-UX B.11.31 aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007] Reporter: Martin Sebor This looks like a bug in cadvise/aCC 6: {noformat} $ cat t.cpp && aCC +w -c -V t.cpp int bar (); int foo (int *a, int i) { int *p; if (i) p = a; else p = 0; if (i) return *p; return 0; } int foobar (int *a, int i) { int *p; if (i) p = a; else p = 0; if (bar ()) if (i) return *p; return 0; } aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007] "t.cpp", line 20, procedure foobar: warning #20200-D: Potential null pointer dereference through p is detected (null definition:t.cpp, line 16) {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.