From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3340 invoked by alias); 16 May 2005 03:06:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3318 invoked by uid 48); 16 May 2005 03:06:04 -0000 Date: Mon, 16 May 2005 03:06:00 -0000 Message-ID: <20050516030604.3315.qmail@sourceware.org> From: "donaldc at csgsolar dot com dot au" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050211020409.19894.reichelt@gcc.gnu.org> References: <20050211020409.19894.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19894] pointer-to-void member not rejected in template X-Bugzilla-Reason: CC X-SW-Source: 2005-05/txt/msg02170.txt.bz2 List-Id: ------- Additional Comments From donaldc at csgsolar dot com dot au 2005-05-16 03:06 ------- > The third paragraph of [8.3.3] aka [dcl.mptr] says: > > A pointer to member shall not point to a static member of a class (9.4), > a member with reference type, or "cv void." It can be equal to null, though. The following should all compile: a=0; if (a==0) { } // always true if (a!=0) {} // always false I don't think there's a bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19894