From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6339 invoked by alias); 8 May 2003 22:05:45 -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 6319 invoked by uid 48); 8 May 2003 22:05:45 -0000 Date: Thu, 08 May 2003 22:05:00 -0000 Message-ID: <20030508220545.6318.qmail@sources.redhat.com> To: calvin.austin@sun.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hui.huang@sun.com, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, calvin.austin@sun.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hui.huang@sun.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/4584: [2003-01-21] Using null pointers for fake addressof() generates warnings X-SW-Source: 2003-05/txt/msg00656.txt.bz2 List-Id: Synopsis: [2003-01-21] Using null pointers for fake addressof() generates warnings State-Changed-From-To: analyzed->closed State-Changed-By: bangerth State-Changed-When: Thu May 8 22:05:45 2003 State-Changed-Why: 3.3 and present mainline say this: g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c 2810-2.ii :6: warning: invalid access to non-static data member `X::p' of NULL object :6: warning: (perhaps the `offsetof' macro was used incorrectly) I think the warning is valid, but if you don't like it you're of course free to shut it off. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4584