From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31068 invoked by alias); 18 Jul 2002 22:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 31048 invoked by uid 71); 18 Jul 2002 22:16:00 -0000 Resent-Date: 18 Jul 2002 22:16:00 -0000 Resent-Message-ID: <20020718221600.31047.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, craig_files@agilent.com Received: (qmail 28816 invoked from network); 18 Jul 2002 22:10:14 -0000 Received: from unknown (HELO msgbas1.cos.agilent.com) (192.25.240.36) by sources.redhat.com with SMTP; 18 Jul 2002 22:10:14 -0000 Received: from msgrel1.cos.agilent.com (msgrel1.cos.agilent.com [130.29.152.77]) by msgbas1.cos.agilent.com (Postfix) with ESMTP id 00ED7BBD0 for ; Thu, 18 Jul 2002 16:10:14 -0600 (MDT) Received: from lathe.ftc.agilent.com (lathe.ftc.agilent.com [130.29.210.32]) by msgrel1.cos.agilent.com (Postfix) with ESMTP id 8DFB638B for ; Thu, 18 Jul 2002 16:10:13 -0600 (MDT) Received: (from cfiles@localhost) by lathe.ftc.agilent.com (8.9.3 (PHNE_24419)/8.9.3 SMKit7.1.0) id QAA25525; Thu, 18 Jul 2002 16:10:13 -0600 (MDT) Message-Id: <200207182210.QAA25525@lathe.ftc.agilent.com> Date: Thu, 18 Jul 2002 15:16:00 -0000 From: craig_files@agilent.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7354: NULL not defined correctly for g++ 64-bits X-SW-Source: 2002-07/txt/msg00558.txt.bz2 List-Id: >Number: 7354 >Category: c++ >Synopsis: NULL not defined correctly for g++ 64-bits >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Jul 18 15:16:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.0.2 >Organization: Agilent Technologies >Environment: System: HP-UX lathe B.11.00 A 9000/785 2000978003 two-user license host: hppa64-hp-hpux11.00 build: hppa64-hp-hpux11.00 target: hppa64-hp-hpux11.00 configured with: ../gcc/configure --prefix=/usr/local/pa20_64 --enable-languages=c,c++ --host=hppa64-hp-hpux11.00 --target=hppa64-hp-hpux11.00 --with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3 >Description: NULL is defined (in stddef.h) for C++ as: #define NULL 0 This is a problem in 64-bit world because the 0 is not a long int, but an int. Thus, NULL's most significant bits are not set to 0 on initialization and comparing against NULL is not really 0x00000. >How-To-Repeat: >Fix: #define NULL (long int)0 ? or #define NULL ((void*)0) >Release-Note: >Audit-Trail: >Unformatted: