From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9488 invoked by alias); 7 May 2003 23: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 9464 invoked by uid 71); 7 May 2003 23:16:01 -0000 Date: Wed, 07 May 2003 23:16:00 -0000 Message-ID: <20030507231601.9463.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Robert Schwartz Subject: Re: c++/10649: is_pointer reports pointer to member function is not a pointer Reply-To: Robert Schwartz X-SW-Source: 2003-05/txt/msg00516.txt.bz2 List-Id: The following reply was made to PR c++/10649; it has been noted by GNATS. From: Robert Schwartz To: giovannibajo@libero.it, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/10649: is_pointer reports pointer to member function is not a pointer Date: Wed, 7 May 2003 16:07:39 -0700 (PDT) --- giovannibajo@libero.it wrote: > Synopsis: is_pointer reports pointer to member function is not a pointer > > State-Changed-From-To: open->closed > State-Changed-By: bajo > State-Changed-When: Wed May 7 00:40:10 2003 > State-Changed-Why: > No, a member function pointer cannot match "T*". What would > be T, in fact? is_pointer::value (i.e. pointer to member variable) evaluates to true. If I remove the * from "int foo::*", then I get "int foo::". I know this isn't a valid C++ type, but a pointer to a member variable is still a pointer, no? If I remove the * from "int (foo::*)(void)", then I get "int (foo::)(void)". I know this isn't a valid C++ type, but a pointer to a member function is still a pointer, no? > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10649 __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com