From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5440 invoked by alias); 8 Oct 2002 18:06:02 -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 5417 invoked by uid 71); 8 Oct 2002 18:06:01 -0000 Resent-Date: 8 Oct 2002 18:06:01 -0000 Resent-Message-ID: <20021008180601.5416.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Jozef Kosoru Received: (qmail 3118 invoked by uid 61); 8 Oct 2002 18:03:51 -0000 Message-Id: <20021008180351.3117.qmail@sources.redhat.com> Date: Tue, 08 Oct 2002 11:06:00 -0000 From: Jozef Kosoru Reply-To: Jozef Kosoru To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8171: pointers to member functions comparison X-SW-Source: 2002-10/txt/msg00294.txt.bz2 List-Id: >Number: 8171 >Category: c++ >Synopsis: pointers to member functions comparison >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Tue Oct 08 11:06:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Jozef Kosoru >Release: 3.1.1 >Organization: >Environment: Mandrake Linux >Description: g++ is not able to compile the following code: ---------------------------------------------------- #include using namespace std; struct A { int f() {} }; struct B : A { }; int main() { int (A::*pa)() = &A::f; int (B::*pb)() = &B::f; cout << boolalpha << (pa == pb) << endl; } ---------------------------------------------------- ...but according to ISO (see 5.10/2) this code should compile and result of the pointer comparsion would be 'true'. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: