From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3122 invoked by alias); 12 Aug 2003 13:49:59 -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 3102 invoked by uid 48); 12 Aug 2003 13:49:59 -0000 Date: Tue, 12 Aug 2003 13:49:00 -0000 Message-ID: <20030812134959.3101.qmail@sources.redhat.com> From: "boaz at hishome dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030812111410.11893.boaz@hishome.net> References: <20030812111410.11893.boaz@hishome.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11893] stdcall pointers to member-functions handled wrong X-Bugzilla-Reason: CC X-SW-Source: 2003-08/txt/msg01472.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11893 ------- Additional Comments From boaz at hishome dot net 2003-08-12 13:49 ------- Sorry to be picky, but wrong again. The problem is that GCC will not let me define an stdcall pointer to member-function. The bad line above is: void ( AFoo:*func )(int,int,int) ; // BAD it should be: void ( __attribute((stdcall)) AFoo:*func )(int,int,int) ; // GOOD but ... but this line produces an error where it shouldn't. And Also: func = &AFoo::foo This line should produce an error (type mismatch) where it is bypassed unsuspectedly Note the good syntax when none member are used (in the second example above)