[Bug c++/11893] stdcall pointers to member-functions handled wrong
boaz at hishome dot net
gcc-bugzilla@gcc.gnu.org
Tue Aug 12 13:49:00 GMT 2003
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)
More information about the Gcc-bugs
mailing list