This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11893] stdcall pointers to member-functions handled wrong
- From: "boaz at hishome dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2003 13:49:59 -0000
- Subject: [Bug c++/11893] stdcall pointers to member-functions handled wrong
- References: <20030812111410.11893.boaz@hishome.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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)