From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2977 invoked by alias); 13 Jul 2005 03:41:32 -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 2958 invoked by uid 48); 13 Jul 2005 03:41:29 -0000 Date: Wed, 13 Jul 2005 04:32:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050713034127.22451.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22451] New: C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions) X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg01538.txt.bz2 List-Id: testcase: struct s {}; struct const_mem_fun_t { const_mem_fun_t(); void operator()(const s* __p) const { return (__p->*_M_f)(); } void (s::*_M_f)() const; }; const_mem_fun_t p1; void test02(const s *a) { p1(a); } Compile at -O1. Use patch in PR 22368 to find this. -- Summary: C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions) Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org OtherBugsDependingO 22368 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22451